Don't leak atom names. (#311933, Peter Zelezny)

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)
This commit is contained in:
Matthias Clasen 2005-08-01 14:21:14 +00:00 committed by Matthias Clasen
parent 888e68c28d
commit 04135812bd
4 changed files with 16 additions and 0 deletions

View 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)

View 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)

View 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)

View 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);
}