Check for NULL inside autocomplete_free

This commit is contained in:
James Booth
2014-09-26 00:48:48 +01:00
parent ccbaa67a01
commit a4f7932ed7
4 changed files with 7 additions and 11 deletions

View File

@@ -594,9 +594,7 @@ _free_room(ChatRoom *room)
if (room->roster) {
g_hash_table_destroy(room->roster);
}
if (room->nick_ac) {
autocomplete_free(room->nick_ac);
}
autocomplete_free(room->nick_ac);
if (room->nick_changes) {
g_hash_table_destroy(room->nick_changes);
}