[Server] Fix mono_free_method(NULL) error

experimental-mono
Koncord 5 years ago
parent 9d58b2459d
commit af228c0539

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

Loading…
Cancel
Save