From b0bf26b076dcc5a6f1d6ecddde89948366e96a1a Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Tue, 30 Dec 2008 03:27:46 +0000 Subject: * Changes to the script engine: - script ends when run_func can't find the buildin command. (script engine error) - run_script_main doesn't change RERUNLINE to RUN automatically, the buildin command that set it is responsible for that now. The buildin command can use this to detect a rerun. - created functions to alloc/free a script_state. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13426 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index 812c70b47..6695abf6b 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1961,6 +1961,7 @@ int unit_free(struct block_list *bl, int clrtype) sd->regstr_num = 0; } //Tell the script to end, not delete it, it will free itself when necessary [Kevin] + // TODO review this assumption, possible source of memory leaks [FlavioJS] if( sd->st ) { sd->st->rid = 0; -- cgit v1.2.3-70-g09d2