1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:23:52 +00:00

Fix dangling model pointer after reference cleanup (Fixes #1653)

This commit is contained in:
scrawl 2014-07-14 16:53:58 +02:00
parent f31a5490f3
commit 6cd739678a
3 changed files with 6 additions and 0 deletions

View file

@ -157,6 +157,8 @@ void CompanionWindow::resetReference()
{
ReferenceInterface::resetReference();
mItemView->setModel(NULL);
mModel = NULL;
mSortModel = NULL;
}

View file

@ -262,6 +262,8 @@ namespace MWGui
{
ReferenceInterface::resetReference();
mItemView->setModel(NULL);
mModel = NULL;
mSortModel = NULL;
}
void ContainerWindow::close()

View file

@ -536,5 +536,7 @@ namespace MWGui
{
ReferenceInterface::resetReference();
mItemView->setModel(NULL);
mTradeModel = NULL;
mSortModel = NULL;
}
}