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/atcommand.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/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index bc76859e9..1c0542066 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -5708,12 +5708,7 @@ ACMD_FUNC(autotrade) { } } - if( sd->channel_count ) { - for( i = 0; i < sd->channel_count; i++ ) { - if( sd->channels[i] != NULL ) - clif->chsys_left(sd->channels[i],sd); - } - } + clif->chsys_quit(sd); clif->authfail_fd(sd->fd, 15); |