Fixed memory leak
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@999 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
85592f9a38
commit
79bd3f5165
@ -1,6 +1,8 @@
|
|||||||
Date Added
|
Date Added
|
||||||
|
|
||||||
01/26
|
01/26
|
||||||
|
* Added bug fix for a memory leak caused when a character logs out,
|
||||||
|
by End_of_exam / jA 1108 [celest]
|
||||||
* Fixed a bug in gettick cache when compiling in Windows, thanks to Shinomori
|
* Fixed a bug in gettick cache when compiling in Windows, thanks to Shinomori
|
||||||
(jA 1094) [celest]
|
(jA 1094) [celest]
|
||||||
* Added updates from jA 1092 [celest]
|
* Added updates from jA 1092 [celest]
|
||||||
|
@ -1085,7 +1085,13 @@ int map_quit(struct map_session_data *sd) {
|
|||||||
chrif_char_offline(sd);
|
chrif_char_offline(sd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
numdb_erase(id_db,sd->bl.id);
|
{
|
||||||
|
void *p = numdb_search(charid_db,sd->status.char_id);
|
||||||
|
if(p) {
|
||||||
|
numdb_erase(charid_db,sd->status.char_id);
|
||||||
|
free(p);
|
||||||
|
}
|
||||||
|
}
|
||||||
strdb_erase(nick_db,sd->status.name);
|
strdb_erase(nick_db,sd->status.name);
|
||||||
numdb_erase(charid_db,sd->status.char_id);
|
numdb_erase(charid_db,sd->status.char_id);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user