From 22e1db931f45226b27f7b84e0c1e183aaef56842 Mon Sep 17 00:00:00 2001 From: Lance Date: Mon, 22 May 2006 12:38:12 +0000 Subject: - Fixed some of the leaks.. still fixing.. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6691 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 4278d8d27..f68fa4e49 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1381,7 +1381,7 @@ int npc_unload (struct npc_data *nd) aFree(nd->u.scr.timer_event); if (nd->u.scr.src_id == 0) { if(nd->u.scr.script) { - aFree(nd->u.scr.script); + script_free_code(nd->u.scr.script); nd->u.scr.script = NULL; } if (nd->u.scr.label_list) { -- cgit v1.2.3-70-g09d2