From 957ecdfbb008733cded26a6dab20c7ac13814f58 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Thu, 27 Dec 2007 05:47:50 +0000 Subject: * Corrected description of scope and npc variables in script_commands.txt. * Made temporary character string variables not have a limited length. (now all temporary string variables don't have limited length) * Made temporary character variables reuse free positions. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11984 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 6e8bf4775..4f8984041 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1671,6 +1671,10 @@ int map_quit(struct map_session_data *sd) } if(sd->regstr) { + int i; + for( i = 0; i < sd->regstr_num; ++i ) + if( sd->regstr[i].data ) + aFree(sd->regstr[i].data); aFree(sd->regstr); sd->regstr = NULL; sd->regstr_num = 0; -- cgit v1.2.3-60-g2f50