From 439704d300230d97716e9c3411e3862e8681c434 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 May 2017 17:45:33 +0300 Subject: Fix item options memory leak in item.cpp --- src/resources/item/item.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/resources/item/item.cpp') 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); } -- cgit v1.2.3-70-g09d2