mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fixes to some crashes on exit and to have cleaner valgrind output
This commit is contained in:
@ -635,7 +635,8 @@ int main(int argc, char** argv)
|
||||
//and return non-zero status so client can detect error
|
||||
throw;
|
||||
}
|
||||
//delete VLC; //can't be re-enabled due to access to already freed memory in bonus system
|
||||
delete VLC;
|
||||
VLC = nullptr;
|
||||
CResourceHandler::clear();
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user