summaryrefslogtreecommitdiff
path: root/src/resources/item/item.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-30 17:45:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-30 17:45:33 +0300
commit439704d300230d97716e9c3411e3862e8681c434 (patch)
tree4c4d042483bfcd3d513350e899fdafcfd429f272 /src/resources/item/item.cpp
parent92c370c7742b8da3bcf279983bc897e66d74a064 (diff)
downloadmanaverse-439704d300230d97716e9c3411e3862e8681c434.tar.gz
manaverse-439704d300230d97716e9c3411e3862e8681c434.tar.bz2
manaverse-439704d300230d97716e9c3411e3862e8681c434.tar.xz
manaverse-439704d300230d97716e9c3411e3862e8681c434.zip
Fix item options memory leak in item.cpp
Diffstat (limited to 'src/resources/item/item.cpp')
-rw-r--r--src/resources/item/item.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/item/item.cpp b/src/resources/item/item.cpp
index 45e365553..c2c25a78c 100644
--- a/src/resources/item/item.cpp
+++ b/src/resources/item/item.cpp
@@ -190,6 +190,7 @@ void Item::addCard(const int card)
void Item::setOptions(const ItemOptionsList *const options)
{
+ delete2(mOptions);
mOptions = ItemOptionsList::copy(options);
}