mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 23:21:19 +02:00
Added more safety guards for mastermenu if we get exceptions thrown within the thread, now it won't crash the game
This commit is contained in:
@@ -99,7 +99,7 @@ std::string SystemFlags::getHTTP(std::string URL) {
|
||||
|
||||
/* get contents from the URL */
|
||||
curl_easy_perform(SystemFlags::curl_handle);
|
||||
std::string serverResponse = chunk.memory;
|
||||
std::string serverResponse = (chunk.memory != NULL ? chunk.memory : "");
|
||||
if(chunk.memory) {
|
||||
free(chunk.memory);
|
||||
}
|
||||
|
Reference in New Issue
Block a user