diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-05 04:45:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-05 04:45:51 +0300 |
commit | 93aa9c81a2043c6caecd8437bfecbfa0c9b79436 (patch) | |
tree | 3438b31a08a3d5ec673f439c1cbc8fd7bd5ae59a /src/gui/popupmenu.cpp | |
parent | 6d06bec226e4d6966e62612b41baf336955b23f4 (diff) | |
download | plus-93aa9c81a2043c6caecd8437bfecbfa0c9b79436.tar.gz plus-93aa9c81a2043c6caecd8437bfecbfa0c9b79436.tar.bz2 plus-93aa9c81a2043c6caecd8437bfecbfa0c9b79436.tar.xz plus-93aa9c81a2043c6caecd8437bfecbfa0c9b79436.zip |
Fix memory leak in equipmentwindow and socialwindow.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index c3f28744c..a9905d4ca 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -1402,8 +1402,7 @@ void PopupMenu::handleLink(const std::string &link, } else { - Equipment *eq = being->getEquipment(); - if (eq && beingEquipmentWindow) + if (beingEquipmentWindow) { beingEquipmentWindow->setBeing(being); beingEquipmentWindow->setVisible(true); |