summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
diff options
context:
space:
mode:
authorBernd Wachter <bwachter-tmw@lart.info>2009-03-29 22:55:39 +0200
committerJared Adams <jaxad0127@gmail.com>2009-03-30 18:40:55 -0600
commit70864719a4f5cc97b7766b11ead32f6a79549efe (patch)
tree1ad77c19c016aac8d490537e5f651760b79365bb /src/gui/equipmentwindow.cpp
parente1f52fe6501ef61306236333a83c4b519cfdf95c (diff)
downloadmana-client-70864719a4f5cc97b7766b11ead32f6a79549efe.tar.gz
mana-client-70864719a4f5cc97b7766b11ead32f6a79549efe.tar.bz2
mana-client-70864719a4f5cc97b7766b11ead32f6a79549efe.tar.xz
mana-client-70864719a4f5cc97b7766b11ead32f6a79549efe.zip
fix segfault if the background image is missing
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r--src/gui/equipmentwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index f92940ce..88cd7b74 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -114,7 +114,8 @@ EquipmentWindow::EquipmentWindow():
EquipmentWindow::~EquipmentWindow()
{
- mBackground->decRef();
+ if (mBackground != NULL)
+ mBackground->decRef();
delete mItemPopup;
delete mUnequip;
}