--- a/libpurple/protocols/jabber/auth_cyrus.c Thu Oct 03 01:33:59 2013 +0530 +++ b/libpurple/protocols/jabber/auth_cyrus.c Thu Oct 03 02:08:55 2013 +0530 @@ -134,7 +134,7 @@ gboolean remember; /* The password prompt dialog doesn't get disposed if the account disconnects */ - if (!PURPLE_IS_CONNECTION(gc)) + if (!PURPLE_CONNECTION_IS_VALID(gc)) return; account = purple_connection_get_account(gc); @@ -168,7 +168,7 @@ PurpleAccount *account; /* The password prompt dialog doesn't get disposed if the account disconnects */ - if (!PURPLE_IS_CONNECTION(gc)) + if (!PURPLE_CONNECTION_IS_VALID(gc)) return; account = purple_connection_get_account(gc);