diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-01-14 05:14:21 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-01-14 05:14:21 +0000 |
commit | cf909ca0064965eea3e579dc549f66732b285b91 (patch) | |
tree | 90f8835c394c6709b9b85a7e877ab9fa3e240e10 /gtk/gtkselection.c | |
parent | 4ebfe1f1fbf086f34e7c3dd36e9455d87dab2be2 (diff) | |
download | gtk+-cf909ca0064965eea3e579dc549f66732b285b91.tar.gz |
Plug memory leaks. (#396160, Carlos Garcia Campos)
2007-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c (_gtk_selection_request): Plug
memory leaks. (#396160, Carlos Garcia Campos)
svn path=/trunk/; revision=17145
Diffstat (limited to 'gtk/gtkselection.c')
-rw-r--r-- | gtk/gtkselection.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |