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:
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()
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue