Explorar o código

- Added back a map_freeblock call in skill_delunitgroup which caused a memory leak @.@...

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7803 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex %!s(int64=19) %!d(string=hai) anos
pai
achega
1ad493fc8c
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 2 0
      Changelog-Trunk.txt
  2. 1 0
      src/map/skill.c

+ 2 - 0
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.

+ 1 - 0
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;