mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
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:
parent
888e68c28d
commit
04135812bd
@ -1,5 +1,9 @@
|
|||||||
2005-08-01 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkmain.c (do_post_parse_initialization): Call
|
||||||
gettext_initialization() here as well. (#311612, Dan Winship)
|
gettext_initialization() here as well. (#311612, Dan Winship)
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
2005-08-01 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkmain.c (do_post_parse_initialization): Call
|
||||||
gettext_initialization() here as well. (#311612, Dan Winship)
|
gettext_initialization() here as well. (#311612, Dan Winship)
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
2005-08-01 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkmain.c (do_post_parse_initialization): Call
|
||||||
gettext_initialization() here as well. (#311612, Dan Winship)
|
gettext_initialization() here as well. (#311612, Dan Winship)
|
||||||
|
|
||||||
|
@ -765,6 +765,8 @@ gtk_clipboard_set_text (GtkClipboard *clipboard,
|
|||||||
g_strndup (text, len));
|
g_strndup (text, len));
|
||||||
gtk_clipboard_set_can_store (clipboard, NULL, 0);
|
gtk_clipboard_set_can_store (clipboard, NULL, 0);
|
||||||
|
|
||||||
|
for (i = 0; i < n_targets; i++)
|
||||||
|
g_free (targets[i].target);
|
||||||
g_free (targets);
|
g_free (targets);
|
||||||
gtk_target_list_unref (list);
|
gtk_target_list_unref (list);
|
||||||
}
|
}
|
||||||
@ -826,6 +828,8 @@ gtk_clipboard_set_image (GtkClipboard *clipboard,
|
|||||||
g_object_ref (pixbuf));
|
g_object_ref (pixbuf));
|
||||||
gtk_clipboard_set_can_store (clipboard, NULL, 0);
|
gtk_clipboard_set_can_store (clipboard, NULL, 0);
|
||||||
|
|
||||||
|
for (i = 0; i < n_targets; i++)
|
||||||
|
g_free (targets[i].target);
|
||||||
g_free (targets);
|
g_free (targets);
|
||||||
gtk_target_list_unref (list);
|
gtk_target_list_unref (list);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user