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:
Matthias Clasen 2006-08-14 19:33:50 +00:00 committed by Matthias Clasen
parent a98a32fe5a
commit 8af7ea4ace
3 changed files with 12 additions and 1 deletions

View File

@ -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>
* gdk/directfb/gdkdrawable-directfb.c

View File

@ -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>
* gdk/directfb/gdkdrawable-directfb.c

View File

@ -5130,7 +5130,6 @@ gtk_entry_drag_data_received (GtkWidget *widget,
gtk_editable_insert_text (editable, str, length, &sel1);
}
g_free (str);
gtk_drag_finish (context, TRUE, context->action == GDK_ACTION_MOVE, time);
}
else
@ -5138,6 +5137,8 @@ gtk_entry_drag_data_received (GtkWidget *widget,
/* Drag and drop didn't happen! */
gtk_drag_finish (context, FALSE, FALSE, time);
}
g_free (str);
}
static void