diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-30 17:45:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-30 17:45:33 +0300 |
commit | 439704d300230d97716e9c3411e3862e8681c434 (patch) | |
tree | 4c4d042483bfcd3d513350e899fdafcfd429f272 | |
parent | 92c370c7742b8da3bcf279983bc897e66d74a064 (diff) | |
download | mv-439704d300230d97716e9c3411e3862e8681c434.tar.gz mv-439704d300230d97716e9c3411e3862e8681c434.tar.bz2 mv-439704d300230d97716e9c3411e3862e8681c434.tar.xz mv-439704d300230d97716e9c3411e3862e8681c434.zip |
Fix item options memory leak in item.cpp
-rw-r--r-- | src/resources/item/item.cpp | 1 |
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); } |