summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-31 00:42:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-31 00:42:50 +0300
commit6563977f8160b8f342af69bd978af180329bff94 (patch)
tree27fd720825c16d5575d921fcec0ae5524a14d675 /src
parente7e6b4a67690502b67d78d6d42c66fd9b147a7ff (diff)
downloadmanaplus-6563977f8160b8f342af69bd978af180329bff94.tar.gz
manaplus-6563977f8160b8f342af69bd978af180329bff94.tar.bz2
manaplus-6563977f8160b8f342af69bd978af180329bff94.tar.xz
manaplus-6563977f8160b8f342af69bd978af180329bff94.zip
Fix null pointer in unit tests.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/buydialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index ebf4ef8a4..df478891c 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -409,7 +409,8 @@ BuyDialog::~BuyDialog()
{
delete2(mShopItems);
instances.remove(this);
- buySellHandler->cleanDialogReference(this);
+ if (buySellHandler)
+ buySellHandler->cleanDialogReference(this);
}
void BuyDialog::setMoney(const int amount)