summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-22 12:38:12 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-22 12:38:12 +0000
commit22e1db931f45226b27f7b84e0c1e183aaef56842 (patch)
tree5e00e0dd38a4b2d20f3dfd397fd10857d3a0950a /src/map/npc.c
parentde7175c5bc24b6e8f3b87540ae93f40a75df2df2 (diff)
downloadhercules-22e1db931f45226b27f7b84e0c1e183aaef56842.tar.gz
hercules-22e1db931f45226b27f7b84e0c1e183aaef56842.tar.bz2
hercules-22e1db931f45226b27f7b84e0c1e183aaef56842.tar.xz
hercules-22e1db931f45226b27f7b84e0c1e183aaef56842.zip
- Fixed some of the leaks.. still fixing..
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6691 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
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) {