diff options
Diffstat (limited to 'src/bookmarks.c')
-rw-r--r-- | src/bookmarks.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bookmarks.c b/src/bookmarks.c index 96a2b6a0..29b3d836 100644 --- a/src/bookmarks.c +++ b/src/bookmarks.c | |||
@@ -118,8 +118,13 @@ void add_Bookmarks(iBookmarks *d, const iString *url, const iString *title, cons | |||
118 | insert_Bookmarks_(d, bm); | 118 | insert_Bookmarks_(d, bm); |
119 | } | 119 | } |
120 | 120 | ||
121 | void remove_Bookmarks(iBookmarks *d, uint32_t id) { | 121 | iBool remove_Bookmarks(iBookmarks *d, uint32_t id) { |
122 | delete_Bookmark((iBookmark *) remove_Hash(&d->bookmarks, id)); | 122 | iBookmark *bm = (iBookmark *) remove_Hash(&d->bookmarks, id); |
123 | if (bm) { | ||
124 | delete_Bookmark(bm); | ||
125 | return iTrue; | ||
126 | } | ||
127 | return iFalse; | ||
123 | } | 128 | } |
124 | 129 | ||
125 | const iPtrArray *list_Bookmarks(const iBookmarks *d, iBookmarksFilterFunc filter, | 130 | const iPtrArray *list_Bookmarks(const iBookmarks *d, iBookmarksFilterFunc filter, |