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:
Mark Vejvoda
2010-05-16 03:31:12 +00:00
parent 74f39293a8
commit 3ba034b8bf
4 changed files with 27 additions and 3 deletions

View File

@@ -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);
}