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
This commit is contained in:
Matthias Clasen 2007-01-14 05:14:21 +00:00 committed by Matthias Clasen
parent 4ebfe1f1fb
commit cf909ca006
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkselection.c (_gtk_selection_request): Plug
memory leaks. (#396160, Carlos Garcia Campos)
2007-01-13 Matthias Clasen <mclasen@redhat.com>
* configure.in: Link libgtk against Xfixes. (#396074,

View File

@ -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 */