On Wed, Jun 3, 2009 at 11:46 AM, Martin Sevior<msevior@gmail.com> wrote:
> Hi Rob,
> Actually no. It gets destructed after all the fonts are
> unref'd and m_pContext
> is unreffed.
Hmm, interesting.
The documentation for pango_cairo_font_map_new() [1] says the returned
object has to be dereferenced by the caller.
Also reading the pango source for pango_context_set_font_map() [2] --
this is where pango_cairo_font_map_create_context() ends up --
suggests that the context works with a reference of its own.
I didn't valgrind, try it, or anything else to substantiate my claims though :-)
[1] http://library.gnome.org/devel/pango/stable/pango-Cairo-Rendering.html#pango-cairo-font-map-new
[2] http://git.gnome.org/cgit/pango/tree/pango/pango-context.c
Cheers,
Rob
Received on Sat Jun 6 16:54:04 2009
This archive was generated by hypermail 2.1.8 : Sat Jun 06 2009 - 16:54:04 CEST