diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-24 16:16:38 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2006-03-24 16:16:38 +0100 |
commit | 728a981e422539df38d27d87e33829082d376ac6 (patch) | |
tree | 86458693b4f0f38f3695ce7fe3bcc7b1ee67c818 /protocols/msn/sb.c | |
parent | 96ace1b808f4df3f2106fa90c19fdc23408f924d (diff) | |
parent | 9b8a38bfa9a89e9741521ac522927c80b68976cf (diff) |
[merge] Wilmer
Diffstat (limited to 'protocols/msn/sb.c')
-rw-r--r-- | protocols/msn/sb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c index deaceba1..234be1d6 100644 --- a/protocols/msn/sb.c +++ b/protocols/msn/sb.c @@ -201,9 +201,6 @@ void msn_sb_destroy( struct msn_switchboard *sb ) debug( "Destroying switchboard: %s", sb->who ? sb->who : sb->key ? sb->key : "" ); - if( sb->key ) g_free( sb->key ); - if( sb->who ) g_free( sb->who ); - if( sb->msgq ) { struct msn_message *m; @@ -221,9 +218,12 @@ void msn_sb_destroy( struct msn_switchboard *sb ) serv_got_crap( gc, "Warning: Closing down MSN switchboard connection with " "unsent message to %s, you'll have to resend it.", - m->who ? m->who : "(unknown)" ); + sb->who ? sb->who : "(unknown)" ); } + if( sb->key ) g_free( sb->key ); + if( sb->who ) g_free( sb->who ); + if( sb->chat ) { serv_got_chat_left( gc, sb->chat->id ); |