From: Colin Clark Date: Sun, 7 Jan 2024 11:32:43 +0000 (+0000) Subject: Fix #1224: Dragging a keyword to another position causes Geeqie to crash X-Git-Tag: v2.2~10 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa7667fb6a2d59f4facb11c083c4d74d0d80f459;p=geeqie.git Fix #1224: Dragging a keyword to another position causes Geeqie to crash https://github.com/BestImageViewer/geeqie/issues/1224 Incorrect change in commit 6d72bf20cc --- diff --git a/src/dnd.cc b/src/dnd.cc index b4de9c498..4f7b7a64a 100644 --- a/src/dnd.cc +++ b/src/dnd.cc @@ -175,7 +175,7 @@ static void dnd_set_drag_label_end_cb(GtkWidget *widget, GdkDragContext *, gpoin { auto window = static_cast(data); g_signal_handlers_disconnect_by_func(widget, (gpointer)dnd_set_drag_label_end_cb, data); - g_object_unref(window); + gq_gtk_widget_destroy(window); } void dnd_set_drag_label(GtkWidget *widget, GdkDragContext *context, const gchar *text)