summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 18705ada..425ac15f 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -143,6 +143,7 @@ InventoryWindow::InventoryWindow(Inventory *inventory, bool isMainInventory):
InventoryWindow::~InventoryWindow()
{
+ instances.remove(this);
mInventory->removeInventoyListener(this);
}