[pygtk] Plug memory leaks in a few Pango Cairo functions



commit 482313729f53f417eeb3f8b89268599fee15cba1
Author: Paul Pogonyshev <pogonyshev gmx net>
Date:   Sat Oct 31 22:49:21 2009 +0200

    Plug memory leaks in a few Pango Cairo functions
    
    Bug #599730.

 pangocairo.defs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pangocairo.defs b/pangocairo.defs
index eb7d079..c94e315 100644
--- a/pangocairo.defs
+++ b/pangocairo.defs
@@ -1,3 +1,4 @@
+;; -*- scheme -*-
 ;; From /opt/gnome-devel/include/pango-1.0/pango/pangocairo.h
 
 (define-interface CairoFontMap
@@ -41,6 +42,7 @@
   (of-object "PangoCairoFontMap")
   (c-name "pango_cairo_font_map_create_context")
   (return-type "PangoContext*")
+  (caller-owns-return #t)
 )
 
 (define-function update_context
@@ -89,6 +91,7 @@
 (define-function create_layout
   (c-name "pango_cairo_create_layout")
   (return-type "PangoLayout*")
+  (caller-owns-return #t)
   (parameters
     '("cairo_t*" "cr")
   )



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]