summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-31 21:39:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-31 21:39:53 +0300
commit9b47893aa8736d173ca85a30c5336d9418b3044f (patch)
tree891fe37b802852e3bfe4824bcd8746d4c7b7d17d /src
parent1e49a9dd41900d045c94ebfe34909fa9e4dba32f (diff)
downloadplugin-9b47893aa8736d173ca85a30c5336d9418b3044f.tar.gz
plugin-9b47893aa8736d173ca85a30c5336d9418b3044f.tar.bz2
plugin-9b47893aa8736d173ca85a30c5336d9418b3044f.tar.xz
plugin-9b47893aa8736d173ca85a30c5336d9418b3044f.zip
Fix memory leak on exit/item_db reload after adding vectors in item_db.
Diffstat (limited to 'src')
-rw-r--r--src/emap/itemdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/itemdb.c b/src/emap/itemdb.c
index 63daca0..4c33853 100644
--- a/src/emap/itemdb.c
+++ b/src/emap/itemdb.c
@@ -201,4 +201,6 @@ void edestroy_item_data_pre(struct item_data **selfPtr,
script->free_code(data->takeScript);
if (data->insertScript)
script->free_code(data->insertScript);
+ VECTOR_CLEAR(data->allowedCards);
+ VECTOR_CLEAR(data->allowedAmmo);
}