mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Don't leak in the non-editable case. (#350258, Colin Leroy)
2006-08-14 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c (gtk_entry_drag_data_received): Don't leak in the non-editable case. (#350258, Colin Leroy)
This commit is contained in:
parent
a98a32fe5a
commit
8af7ea4ace
@ -1,3 +1,8 @@
|
|||||||
|
2006-08-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_drag_data_received): Don't leak
|
||||||
|
in the non-editable case. (#350258, Colin Leroy)
|
||||||
|
|
||||||
2006-08-10 Michael Emmel <mike.emmel@gmail.com>
|
2006-08-10 Michael Emmel <mike.emmel@gmail.com>
|
||||||
|
|
||||||
* gdk/directfb/gdkdrawable-directfb.c
|
* gdk/directfb/gdkdrawable-directfb.c
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2006-08-14 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_drag_data_received): Don't leak
|
||||||
|
in the non-editable case. (#350258, Colin Leroy)
|
||||||
|
|
||||||
2006-08-10 Michael Emmel <mike.emmel@gmail.com>
|
2006-08-10 Michael Emmel <mike.emmel@gmail.com>
|
||||||
|
|
||||||
* gdk/directfb/gdkdrawable-directfb.c
|
* gdk/directfb/gdkdrawable-directfb.c
|
||||||
|
@ -5130,7 +5130,6 @@ gtk_entry_drag_data_received (GtkWidget *widget,
|
|||||||
gtk_editable_insert_text (editable, str, length, &sel1);
|
gtk_editable_insert_text (editable, str, length, &sel1);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (str);
|
|
||||||
gtk_drag_finish (context, TRUE, context->action == GDK_ACTION_MOVE, time);
|
gtk_drag_finish (context, TRUE, context->action == GDK_ACTION_MOVE, time);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -5138,6 +5137,8 @@ gtk_entry_drag_data_received (GtkWidget *widget,
|
|||||||
/* Drag and drop didn't happen! */
|
/* Drag and drop didn't happen! */
|
||||||
gtk_drag_finish (context, FALSE, FALSE, time);
|
gtk_drag_finish (context, FALSE, FALSE, time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_free (str);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user