Commit 04135812 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 888e68c2
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)
......
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)
......
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)
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment