Commit 89fd1354 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte
Browse files

Fixed leak in glade_design_layout_drag_begin()

parent 71b70b37
...@@ -2045,6 +2045,7 @@ glade_design_layout_drag_begin (GtkWidget *widget, GdkDragContext *context) ...@@ -2045,6 +2045,7 @@ glade_design_layout_drag_begin (GtkWidget *widget, GdkDragContext *context)
priv->drag_icon = _glade_design_layout_dnd_icon_widget_new (context, icon_name, description); priv->drag_icon = _glade_design_layout_dnd_icon_widget_new (context, icon_name, description);
g_object_ref_sink (priv->drag_icon); g_object_ref_sink (priv->drag_icon);
gtk_drag_set_icon_widget (context, priv->drag_icon, 0, 0); gtk_drag_set_icon_widget (context, priv->drag_icon, 0, 0);
g_free (description);
} }
static void static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment