summaryrefslogtreecommitdiff
path: root/src/gui/windows/buydialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-30 19:10:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-30 20:39:49 +0300
commit5f8496ca103fabb4cfc265d8d936e194129a17ef (patch)
tree60314fbebf3773e1a6df6d32a9fbd67b4a482071 /src/gui/windows/buydialog.cpp
parent6fa245a1cb5037118ba19a084f219abcc00f6294 (diff)
downloadmanaplus-5f8496ca103fabb4cfc265d8d936e194129a17ef.tar.gz
manaplus-5f8496ca103fabb4cfc265d8d936e194129a17ef.tar.bz2
manaplus-5f8496ca103fabb4cfc265d8d936e194129a17ef.tar.xz
manaplus-5f8496ca103fabb4cfc265d8d936e194129a17ef.zip
Clean buy dialog dungling pointer if buy dialog was destroyed.
Diffstat (limited to 'src/gui/windows/buydialog.cpp')
-rw-r--r--src/gui/windows/buydialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index b0e7aaa04..ebf4ef8a4 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -409,6 +409,7 @@ BuyDialog::~BuyDialog()
{
delete2(mShopItems);
instances.remove(this);
+ buySellHandler->cleanDialogReference(this);
}
void BuyDialog::setMoney(const int amount)