gtk+ r20092 - in trunk: . gdk/win32
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20092 - in trunk: . gdk/win32
- Date: Mon, 12 May 2008 08:05:40 +0100 (BST)
Author: tml
Date: Mon May 12 07:05:40 2008
New Revision: 20092
URL: http://svn.gnome.org/viewvc/gtk+?rev=20092&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:
trunk/ChangeLog
trunk/gdk/win32/gdkselection-win32.c
Modified: trunk/gdk/win32/gdkselection-win32.c
==============================================================================
--- trunk/gdk/win32/gdkselection-win32.c (original)
+++ trunk/gdk/win32/gdkselection-win32.c Mon May 12 07:05:40 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]