diff options
author | shennetsind <ind@henn.et> | 2013-04-11 19:24:59 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-11 19:24:59 -0300 |
commit | 1152ef720d3ef010a40ddf3cb5fc63fbc2f3e030 (patch) | |
tree | 3deca39ef5a3b9a3be62ac8e5906c64cb7e44926 /src/map/guild.c | |
parent | 81bc395cc19fe06ea1cd49db22dc8c202c684d9f (diff) | |
download | hercules-1152ef720d3ef010a40ddf3cb5fc63fbc2f3e030.tar.gz hercules-1152ef720d3ef010a40ddf3cb5fc63fbc2f3e030.tar.bz2 hercules-1152ef720d3ef010a40ddf3cb5fc63fbc2f3e030.tar.xz hercules-1152ef720d3ef010a40ddf3cb5fc63fbc2f3e030.zip |
Fixed Bug #7158
http://hercules.ws/board/tracker/issue-7158-memory-leak/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/guild.c')
-rw-r--r-- | src/map/guild.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/map/guild.c b/src/map/guild.c index 9b128c4e1..321560420 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -902,17 +902,13 @@ int guild_member_withdraw(int guild_id, int account_id, int char_id, int flag, c clif->guild_memberlist(online_member_sd); // update char, if online - if(sd != NULL && sd->status.guild_id == guild_id) - { + if(sd != NULL && sd->status.guild_id == guild_id) { // do stuff that needs the guild_id first, BEFORE we wipe it if (sd->state.storage_flag == 2) //Close the guild storage. storage_guild_storageclose(sd); guild_send_dot_remove(sd); if( hChSys.ally ) { - for (i = 0; i < sd->channel_count; i++) { - if( sd->channels[i] && sd->channels[i]->type == hChSys_ALLY ) - clif->chsys_left(sd->channels[i],sd); - } + clif->chsys_quitg(sd); } sd->status.guild_id = 0; sd->guild = NULL; |