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

deque
scrawl 11 years ago
parent f31a5490f3
commit 6cd739678a

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

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

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

Loading…
Cancel
Save