# HG changeset patch # User Mark Doliner # Date 1216310889 0 # Node ID 3b3d7039bc8e48a5977d8ae91f417c483afac112 # Parent bdb38a8bf72121140fe719d854a048d203bf0b5c 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! diff -r bdb38a8bf721 -r 3b3d7039bc8e libpurple/protocols/oscar/flap_connection.c --- a/libpurple/protocols/oscar/flap_connection.c Thu Jul 17 15:12:42 2008 +0000 +++ b/libpurple/protocols/oscar/flap_connection.c Thu Jul 17 16:08:09 2008 +0000 @@ -299,7 +299,7 @@ conn->connect_data = NULL; } - if (conn->connect_data != NULL) + if (conn->new_conn_data != NULL) { if (conn->type == SNAC_FAMILY_CHAT) {