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?p=geeqie.git;a=commitdiff_plain;h=fa7667fb6a2d59f4facb11c083c4d74d0d80f459 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 b4de9c49..4f7b7a64 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)