mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 16:26:21 +00:00
Check for NULL inside autocomplete_free
This commit is contained in:
@@ -77,9 +77,7 @@ bookmark_request(void)
|
||||
id = strdup("bookmark_init_request");
|
||||
|
||||
autojoin_count = 0;
|
||||
if (bookmark_ac != NULL) {
|
||||
autocomplete_free(bookmark_ac);
|
||||
}
|
||||
autocomplete_free(bookmark_ac);
|
||||
bookmark_ac = autocomplete_new();
|
||||
if (bookmark_list != NULL) {
|
||||
g_list_free_full(bookmark_list, _bookmark_item_destroy);
|
||||
|
||||
Reference in New Issue
Block a user