summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-05 04:45:51 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-05 04:45:51 +0300
commit93aa9c81a2043c6caecd8437bfecbfa0c9b79436 (patch)
tree3438b31a08a3d5ec673f439c1cbc8fd7bd5ae59a /src/gui/popupmenu.cpp
parent6d06bec226e4d6966e62612b41baf336955b23f4 (diff)
downloadmv-93aa9c81a2043c6caecd8437bfecbfa0c9b79436.tar.gz
mv-93aa9c81a2043c6caecd8437bfecbfa0c9b79436.tar.bz2
mv-93aa9c81a2043c6caecd8437bfecbfa0c9b79436.tar.xz
mv-93aa9c81a2043c6caecd8437bfecbfa0c9b79436.zip
Fix memory leak in equipmentwindow and socialwindow.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp3
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);