summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 16:04:50 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 16:04:50 +0000
commite64992e9fddb211c43f72e0644a6c0b1b0a07a76 (patch)
tree6e4ae01c7c733201a35d50de90860badf657d589
parentb8e86044ea41feb23de00bd36b45b80d9837425f (diff)
downloadhercules-e64992e9fddb211c43f72e0644a6c0b1b0a07a76.tar.gz
hercules-e64992e9fddb211c43f72e0644a6c0b1b0a07a76.tar.bz2
hercules-e64992e9fddb211c43f72e0644a6c0b1b0a07a76.tar.xz
hercules-e64992e9fddb211c43f72e0644a6c0b1b0a07a76.zip
- 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
-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;