- Fixed a memory leak when reading the item_db txt.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7906 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-07-27 03:33:56 +00:00
parent 3d18f93d8e
commit 6c9eb52332
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/07/26
* Fixed a memory leak when reading the item_db txt. [Skotlex]
* Applied the necessary changes to make @partyoption reflect it's changes
on the alt+p window. [Skotlex]
* Modified party_item_share_type config setting so that using 1 disables

View File

@ -1130,11 +1130,11 @@ static int itemdb_readdb(void)
id->script=NULL;
}
if (id->equip_script) {
aFree(id->equip_script);
script_free_code(id->equip_script);
id->equip_script=NULL;
}
if (id->unequip_script) {
aFree(id->unequip_script);
script_free_code(id->unequip_script);
id->unequip_script=NULL;
}