comparison libpurple/protocols/oscar/flap_connection.c @ 23607:3b3d7039bc8e

Daniel Atallah pointed out that this was obviously wrong. So we would have leaked a struct containing info about a chat if the connection to the chatroom failed for any reason, or if you signed offline while the connection was pending. All better!
author Mark Doliner <mark@kingant.net>
date Thu, 17 Jul 2008 16:08:09 +0000
parents 277966d1987e
children de24d89313b0
comparison
equal deleted inserted replaced
23606:bdb38a8bf721 23607:3b3d7039bc8e
297 { 297 {
298 purple_proxy_connect_cancel(conn->connect_data); 298 purple_proxy_connect_cancel(conn->connect_data);
299 conn->connect_data = NULL; 299 conn->connect_data = NULL;
300 } 300 }
301 301
302 if (conn->connect_data != NULL) 302 if (conn->new_conn_data != NULL)
303 { 303 {
304 if (conn->type == SNAC_FAMILY_CHAT) 304 if (conn->type == SNAC_FAMILY_CHAT)
305 { 305 {
306 oscar_chat_destroy(conn->new_conn_data); 306 oscar_chat_destroy(conn->new_conn_data);
307 conn->connect_data = NULL; 307 conn->connect_data = NULL;