# HG changeset patch # User Elliott Sales de Andrade # Date 1316674964 0 # Node ID cd2254bf8fa9595dc478acf1ca345fe18b8b94e6 # Parent 64793e55488e8a0fd05d999cbbe93b4dc7bbb78d I don't know why this happens, but I keep getting a critical debug message because account->presence is NULL, and it's annoying me when I set fatal-criticals. diff -r 64793e55488e -r cd2254bf8fa9 libpurple/account.c --- a/libpurple/account.c Wed Sep 21 21:37:37 2011 +0000 +++ b/libpurple/account.c Thu Sep 22 07:02:44 2011 +0000 @@ -1086,7 +1086,8 @@ purple_account_set_status_types(account, NULL); - purple_presence_destroy(account->presence); + if (account->presence) + purple_presence_destroy(account->presence); if(account->system_log) purple_log_free(account->system_log);