[gtk+/wip/baedert/gtk-widget-destroy: 10/10] dnd: Ref the icon widget



commit 7ddd65b58476a1e8675618eae0c7db161fadc5ca
Author: Timm Bäder <mail baedert org>
Date:   Tue Sep 26 15:07:24 2017 +0200

    dnd: Ref the icon widget

 gtk/gtkdnd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index f76d864..dfe0203 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1532,7 +1532,7 @@ gtk_drag_set_icon_widget_internal (GdkDragContext *context,
   if (widget)
     g_object_ref (widget);
 
-  info->icon_widget = widget;
+  info->icon_widget = g_object_ref (widget);
   info->hot_x = hot_x;
   info->hot_y = hot_y;
   info->destroy_icon = destroy_on_release;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]