Delete ParkLoadResult after it's been used

This commit is contained in:
Michał Janiszewski committed 2017-07-30 17:41:55 +02:00
1 parent eb76b188ae
commit 4c6412d4fd
1 file changed
+2
+2
View File
@@ -1124,6 +1124,7 @@ bool game_load_save(const utf8 *path)
}
if (load_success) {
ParkLoadResult_Delete(result);
if (network_get_mode() == NETWORK_MODE_CLIENT) {
network_close();
}
@@ -1138,6 +1139,7 @@ bool game_load_save(const utf8 *path)
return true;
} else {
handle_park_load_failure(result, path);
ParkLoadResult_Delete(result);
return false;
}
}