]> Pileus Git - ~andy/gtk/commitdiff
Don't leak atom names. (#311933, Peter Zelezny)
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 Aug 2005 14:21:14 +0000 (14:21 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 1 Aug 2005 14:21:14 +0000 (14:21 +0000)
2005-08-01  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkclipboard.c (gtk_clipboard_set_image)
(gtk_clipboard_set_text): Don't leak atom names.  (#311933,
Peter Zelezny)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkclipboard.c

index 9a68b6b7e8b124fce23a35fafc8fb1ce65e884ec..ccd6fe11a1da7f85fdb8f4cc5e8aa732fc56c827 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-08-01  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkclipboard.c (gtk_clipboard_set_image) 
+       (gtk_clipboard_set_text): Don't leak atom names.  (#311933,
+       Peter Zelezny)
+
        * gtk/gtkmain.c (do_post_parse_initialization): Call
        gettext_initialization() here as well.  (#311612, Dan Winship)
 
index 9a68b6b7e8b124fce23a35fafc8fb1ce65e884ec..ccd6fe11a1da7f85fdb8f4cc5e8aa732fc56c827 100644 (file)
@@ -1,5 +1,9 @@
 2005-08-01  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkclipboard.c (gtk_clipboard_set_image) 
+       (gtk_clipboard_set_text): Don't leak atom names.  (#311933,
+       Peter Zelezny)
+
        * gtk/gtkmain.c (do_post_parse_initialization): Call
        gettext_initialization() here as well.  (#311612, Dan Winship)
 
index 9a68b6b7e8b124fce23a35fafc8fb1ce65e884ec..ccd6fe11a1da7f85fdb8f4cc5e8aa732fc56c827 100644 (file)
@@ -1,5 +1,9 @@
 2005-08-01  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkclipboard.c (gtk_clipboard_set_image) 
+       (gtk_clipboard_set_text): Don't leak atom names.  (#311933,
+       Peter Zelezny)
+
        * gtk/gtkmain.c (do_post_parse_initialization): Call
        gettext_initialization() here as well.  (#311612, Dan Winship)
 
index dde348e1cdf55e65f2337fe956d1514242960dc1..74cdf66ebdb6fc5275910fed1c4e43a130b4774c 100644 (file)
@@ -765,6 +765,8 @@ gtk_clipboard_set_text (GtkClipboard *clipboard,
                               g_strndup (text, len));
   gtk_clipboard_set_can_store (clipboard, NULL, 0);
 
+  for (i = 0; i < n_targets; i++)
+    g_free (targets[i].target);
   g_free (targets);
   gtk_target_list_unref (list);
 }
@@ -826,6 +828,8 @@ gtk_clipboard_set_image (GtkClipboard *clipboard,
                               g_object_ref (pixbuf));
   gtk_clipboard_set_can_store (clipboard, NULL, 0);
 
+  for (i = 0; i < n_targets; i++)
+    g_free (targets[i].target);
   g_free (targets);
   gtk_target_list_unref (list);
 }