From cf909ca0064965eea3e579dc549f66732b285b91 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 14 Jan 2007 05:14:21 +0000 Subject: [PATCH] Plug memory leaks. (#396160, Carlos Garcia Campos) 2007-01-13 Matthias Clasen * gtk/gtkselection.c (_gtk_selection_request): Plug memory leaks. (#396160, Carlos Garcia Campos) svn path=/trunk/; revision=17145 --- ChangeLog | 5 +++++ gtk/gtkselection.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 843c0c172e..0fd38f82fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-13 Matthias Clasen + + * gtk/gtkselection.c (_gtk_selection_request): Plug + memory leaks. (#396160, Carlos Garcia Campos) + 2007-01-13 Matthias Clasen * configure.in: Link libgtk against Xfixes. (#396074, diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index 5a88069aab..080a1c32dc 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -2132,6 +2132,7 @@ _gtk_selection_request (GtkWidget *widget, event->time); g_free (mult_atoms); g_free (info); + gdk_error_trap_pop (); return TRUE; } gdk_error_trap_pop (); @@ -2168,6 +2169,8 @@ _gtk_selection_request (GtkWidget *widget, info->conversions[i].target = ((GdkAtom *)mult_atoms)[2*i]; info->conversions[i].property = ((GdkAtom *)mult_atoms)[2*i+1]; } + + g_free (mult_atoms); } } else /* only a single conversion */