diff options
author | greenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-24 16:27:04 +0000 |
---|---|---|
committer | greenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-04-24 16:27:04 +0000 |
commit | a5244368bb4c8887d900228658f4fa680222d0da (patch) | |
tree | 3b29ef1eb50674abb4005dda2b362675da5d43eb /src/map/unit.c | |
parent | 173905288bdb123e7c2249f9d05714acf2f1541a (diff) | |
download | hercules-a5244368bb4c8887d900228658f4fa680222d0da.tar.gz hercules-a5244368bb4c8887d900228658f4fa680222d0da.tar.bz2 hercules-a5244368bb4c8887d900228658f4fa680222d0da.tar.xz hercules-a5244368bb4c8887d900228658f4fa680222d0da.zip |
Fixed memory leak on MvP tomb system, killer name now uses static buffer. (bugreport:5615)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15954 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 43cbc02e1..7718ed311 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -2368,6 +2368,8 @@ int unit_free(struct block_list *bl, clr_type clrtype) } if( mob_is_clone(md->class_) ) mob_clone_delete(md); + if( md->tomb_nid ) + mvptomb_destroy(md); break; } case BL_HOM: |