summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/skill.c1
2 files changed, 3 insertions, 0 deletions
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;