gtk+ r20094 - in branches/gtk-2-12: . gdk/win32
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20094 - in branches/gtk-2-12: . gdk/win32
- Date: Mon, 12 May 2008 08:07:49 +0100 (BST)
Author: tml
Date: Mon May 12 07:07:48 2008
New Revision: 20094
URL: http://svn.gnome.org/viewvc/gtk+?rev=20094&view=rev
Log:
2008-05-12 Tor Lillqvist <tml novell com>
Bug 532059 - Leak in win32 clipboard manipulation
* gdk/win32/gdkselection-win32.c
(gdk_win32_selection_add_targets): Plug memory leak. Patch by
Daniel Atallah.
Modified:
branches/gtk-2-12/ChangeLog
branches/gtk-2-12/gdk/win32/gdkselection-win32.c
Modified: branches/gtk-2-12/gdk/win32/gdkselection-win32.c
==============================================================================
--- branches/gtk-2-12/gdk/win32/gdkselection-win32.c (original)
+++ branches/gtk-2-12/gdk/win32/gdkselection-win32.c Mon May 12 07:07:48 2008
@@ -1121,10 +1121,11 @@
{
gchar **mime_types =
gdk_pixbuf_format_get_mime_types ((GdkPixbufFormat *) format->data);
+ gchar **mime_type;
- for (; *mime_types; ++mime_types)
+ for (mime_type = mime_types; *mime_type; ++mime_type)
{
- if (!strcmp (target_name, *mime_types))
+ if (!strcmp (target_name, *mime_type))
{
g_hash_table_replace (_format_atom_table,
GINT_TO_POINTER (CF_DIB),
@@ -1135,6 +1136,7 @@
break;
}
}
+ g_strfreev(mime_types);
}
g_free (target_name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]