Hi all. I'm getting some memory leaks in my application while rendering text.
This is a test case: -------------------------------------------------------------------- import sys, os, gc import pango import cairo import pangocairo if __name__ == '__main__': surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 400, 300) cr = pangocairo.CairoContext(cairo.Context(surface)) cr.set_source_rgb(1.0, 0.0, 0.0) for i in xrange(500000): cr.new_path() cr.move_to(100, 100) layout = cr.create_layout() layout.set_text('text text text') cr.show_layout(layout) -------------------------------------------------------------------- running this python program, I see the process virtual memory size grow while the number of python objects remains constant (shown by adding 'print len(gc.get_objects())' inside the loop). The only object created inside the loop is the layout. Could this be a bug inside PangoLayout class? I'm running python-2.6.4, pycairo-1.8.8, cairo-1.8.8, pango-1.26.2 thank you for your help. Claudio Cilloni _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/