summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-17 18:55:36 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-17 18:55:36 +0300
commit4ecdb004e81a459ea63ebd7127e1c945df43f9ce (patch)
treea8ece58a62724c4b088484e0b5c1f44fdbf2f7e1 /src/resources
parent334c1c50dfa57da0b91687e097db295a6a3b699b (diff)
downloadplus-4ecdb004e81a459ea63ebd7127e1c945df43f9ce.tar.gz
plus-4ecdb004e81a459ea63ebd7127e1c945df43f9ce.tar.bz2
plus-4ecdb004e81a459ea63ebd7127e1c945df43f9ce.tar.xz
plus-4ecdb004e81a459ea63ebd7127e1c945df43f9ce.zip
Fix issues detected by coverity.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/inventory/complexinventory.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/inventory/complexinventory.cpp b/src/resources/inventory/complexinventory.cpp
index 4d77cfdde..c6037fe38 100644
--- a/src/resources/inventory/complexinventory.cpp
+++ b/src/resources/inventory/complexinventory.cpp
@@ -161,6 +161,7 @@ void ComplexInventory::setItem(const int index,
equipped);
item2->setInvIndex(index);
item->addChild(item2, quantity);
+ delete item2;
mItems[index] = item;
mUsed ++;