1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +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() int LangMono::FreeProgram()
{ {
for(auto &&method : methodsCache) for(auto &&method : methodsCache)
{
if(method.second != nullptr)
mono_free_method(method.second); mono_free_method(method.second);
}
return 0; return 0;
} }