diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-05 21:09:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-05 21:09:49 +0300 |
commit | e39429ce4e219bd577f1adb2c98f04e614b57ceb (patch) | |
tree | 6ca7388440dd43d5a072916b28407fb58d250cbb /src/gui/equipmentwindow.cpp | |
parent | bef65b44075a5c918821f1360804ff5f9f2a32ed (diff) | |
download | mv-e39429ce4e219bd577f1adb2c98f04e614b57ceb.tar.gz mv-e39429ce4e219bd577f1adb2c98f04e614b57ceb.tar.bz2 mv-e39429ce4e219bd577f1adb2c98f04e614b57ceb.tar.xz mv-e39429ce4e219bd577f1adb2c98f04e614b57ceb.zip |
Fix termination memory leaks after adding batch draw.
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r-- | src/gui/equipmentwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp index ef22dc4c5..eec7bba4c 100644 --- a/src/gui/equipmentwindow.cpp +++ b/src/gui/equipmentwindow.cpp @@ -139,6 +139,8 @@ EquipmentWindow::~EquipmentWindow() mSlotBackground->decRef(); if (mSlotHighlightedBackground) mSlotHighlightedBackground->decRef(); + delete mVertexes; + mVertexes = nullptr; } void EquipmentWindow::draw(gcn::Graphics *graphics) |