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:
parent
9d58b2459d
commit
af228c0539
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue