diff options
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-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; } |