diff options
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r-- | gtk/gtkdnd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 8c2d2abc76..0e11b9d767 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -2849,6 +2849,13 @@ gtk_drag_set_icon_window (GdkDragContext *context, GtkDragSourceInfo *info; info = gtk_drag_get_source_info (context, FALSE); + if (info == NULL) + { + if (destroy_on_release) + gtk_widget_destroy (widget); + return; + } + gtk_drag_remove_icon (info); if (widget) |