diff options
author | Bernd Wachter <bwachter-tmw@lart.info> | 2009-03-29 22:55:39 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-30 18:40:55 -0600 |
commit | 70864719a4f5cc97b7766b11ead32f6a79549efe (patch) | |
tree | 1ad77c19c016aac8d490537e5f651760b79365bb | |
parent | e1f52fe6501ef61306236333a83c4b519cfdf95c (diff) | |
download | mana-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
-rw-r--r-- | src/gui/equipmentwindow.cpp | 3 |
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; } |