1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 19:45:38 +00:00

[Server] Fix mono_free_method(NULL) error

This commit is contained in:
Koncord 2019-01-03 04:26:01 +08:00
parent 9d58b2459d
commit af228c0539

View file

@ -345,7 +345,10 @@ void LangMono::LoadProgram(const char *filename)
int LangMono::FreeProgram()
{
for(auto &&method : methodsCache)
mono_free_method(method.second);
{
if(method.second != nullptr)
mono_free_method(method.second);
}
return 0;
}