From e64992e9fddb211c43f72e0644a6c0b1b0a07a76 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 21 Jul 2006 16:04:50 +0000 Subject: - Added back a map_freeblock call in skill_delunitgroup which caused a memory leak @.@... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7803 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 2 ++ src/map/skill.c | 1 + 2 files changed, 3 insertions(+) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 8be7b50b2..d4987108f 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,8 @@ 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/21 + * Added back a map_freeblock call in skill_delunitgroup which caused a + memory leak when removed... [Skotlex] * Added a check to prevent Blind from ending while standing on a fog of wall. [Skotlex] * The mob Slave ai will be executed now even when the slave has a target. diff --git a/src/map/skill.c b/src/map/skill.c index 34047b582..45eebf558 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -9790,6 +9790,7 @@ int skill_delunitgroup (struct block_list *src, struct skill_unit_group *group) group->valstr=NULL; } + map_freeblock((struct block_list*)group->unit); group->unit=NULL; group->group_id=0; group->unit_count=0; -- cgit v1.2.3-70-g09d2