1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Clean up after removing bookmark

Issue #194
This commit is contained in:
James Booth 2014-04-13 01:10:54 +01:00
parent 5bb3fab17c
commit f7daaf0953

View File

@ -114,6 +114,8 @@ _bookmark_add(const char *jid, const char *nick, gboolean autojoin)
GList *found = g_list_find_custom(bookmark_list, item, _match_bookmark_by_jid);
if (found != NULL) {
bookmark_list = g_list_remove_link(bookmark_list, found);
_bookmark_item_destroy(found->data);
g_list_free(found);
}
bookmark_list = g_list_append(bookmark_list, item);