From f15995cea6ac172a676b17fc91fb0940f97ae87f Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 1 Sep 2006 15:18:15 +0000 Subject: - Added defines status_base_matk_(max/min) for code readability - Expanded status_calc_misc so it may also calculate the batk of characters as well as their regen data (if they have it) - Fixed a memory leak when using charsave_method:1 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8576 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index cd70167bd..61527cadb 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1703,6 +1703,8 @@ int map_quit(struct map_session_data *sd) { if(charsave_method) { //Let player be free'd on closing the connection. idb_remove(pc_db,sd->status.account_id); + if (!(sd->fd && session[sd->fd]->session_data)) + aFree(sd); //In case player was not attached to session. return 0; } #endif -- cgit v1.2.3-60-g2f50