Fixed @reloadmobdb producing memory leaks in pet db (bugreport:1030)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12250 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
5afa9cceb9
commit
d95a0ce3a5
@ -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.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2008/02/27
|
2008/02/27
|
||||||
|
* Fixed @reloadmobdb producing memory leaks in pet db (bugreport:1030)
|
||||||
* Patched an unresolved case where knocking back a bard/dancer would
|
* Patched an unresolved case where knocking back a bard/dancer would
|
||||||
cause the mapserver to crash (bugreport:1043)
|
cause the mapserver to crash (bugreport:1043)
|
||||||
* Fixed Apple of Idun not checking for bard soul link (bugreport:1028)
|
* Fixed Apple of Idun not checking for bard soul link (bugreport:1028)
|
||||||
|
@ -1237,7 +1237,7 @@ int read_petdb()
|
|||||||
// Remove any previous scripts in case reloaddb was invoked.
|
// Remove any previous scripts in case reloaddb was invoked.
|
||||||
for( j = 0; j < MAX_PET_DB; j++ )
|
for( j = 0; j < MAX_PET_DB; j++ )
|
||||||
if (pet_db[j].script) {
|
if (pet_db[j].script) {
|
||||||
aFree(pet_db[j].script);
|
script_free_code(pet_db[j].script);
|
||||||
pet_db[j].script = NULL;
|
pet_db[j].script = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1332,7 +1332,6 @@ int read_petdb()
|
|||||||
*------------------------------------------*/
|
*------------------------------------------*/
|
||||||
int do_init_pet(void)
|
int do_init_pet(void)
|
||||||
{
|
{
|
||||||
memset(pet_db,0,sizeof(pet_db));
|
|
||||||
read_petdb();
|
read_petdb();
|
||||||
|
|
||||||
item_drop_ers = ers_new(sizeof(struct item_drop));
|
item_drop_ers = ers_new(sizeof(struct item_drop));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user