fix use-after-free in memview

develop
Ben Lubar 2020-02-14 17:38:31 -06:00
parent 360e6e9afb
commit 4e69b50bb3
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 2 additions and 1 deletions

@ -217,7 +217,8 @@ DFhackCExport command_result plugin_shutdown (color_ostream &out)
{
mymutex->lock();
Deinit();
delete mymutex;
mymutex->unlock();
delete mymutex;
mymutex = nullptr;
return CR_OK;
}