GTK4: Bug fix - Reduce the use of gtk_widget_destroy
authorColin Clark <colin.clark@cclark.uk>
Sun, 1 Oct 2023 08:59:38 +0000 (09:59 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 1 Oct 2023 08:59:38 +0000 (09:59 +0100)
GTK4 migration

src/ui-bookmark.cc

index 4835913..3bb0f54 100644 (file)
@@ -522,7 +522,7 @@ static void bookmark_populate(BookMarkData *bm)
                {
                GtkWidget *widget = GTK_WIDGET(work->data);
                work = work->next;
-               g_object_unref(widget);
+               gq_gtk_widget_destroy(widget);
                }
 
        if (!bm->no_defaults && !history_list_get_by_key(bm->key))