summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2011-09-27 00:17:52 -0400
committerFederico Mena Quintero <federico@gnome.org>2013-04-05 12:08:28 -0600
commiteca72baa5616fbe4dbebea43c7e5940847dc5ab8 (patch)
tree20a3ccc42ea0c42f9c26f87ed98ec994c7e03762 /gtk
parenteaf1c1b881d2d20d202cf475b5ffed2206b110df (diff)
downloadpygtk-eca72baa5616fbe4dbebea43c7e5940847dc5ab8.tar.gz
Fix leaks of Pango objects
Gtk.PrintContext.create_pango_context() Gtk.PrintContext.create_pango_layout() pangocairo.CairoContext.create_layout() were leaking the objects they returned. https://bugzilla.gnome.org/show_bug.cgi?id=660216
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk-2.10.defs2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtk-2.10.defs b/gtk/gtk-2.10.defs
index 69c7e0c0..faa45e12 100644
--- a/gtk/gtk-2.10.defs
+++ b/gtk/gtk-2.10.defs
@@ -1388,12 +1388,14 @@
(define-method create_pango_context
(of-object "GtkPrintContext")
(c-name "gtk_print_context_create_pango_context")
+ (caller-owns-return #t)
(return-type "PangoContext*")
)
(define-method create_pango_layout
(of-object "GtkPrintContext")
(c-name "gtk_print_context_create_pango_layout")
+ (caller-owns-return #t)
(return-type "PangoLayout*")
)