From 5f8496ca103fabb4cfc265d8d936e194129a17ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Jan 2017 19:10:14 +0300 Subject: Clean buy dialog dungling pointer if buy dialog was destroyed. --- src/gui/windows/buydialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/windows/buydialog.cpp') 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) -- cgit v1.2.3-70-g09d2