Memory ownership from pango_context_load_font(..)



HI Folks,
             I'm having trouble getting to the bottom of either a
crash on exit or a memory leak issue in abiword.

I think my problem stems from the function

PangoFont * pF = pango_context_load_font( (PangoContext *context,
                                                         const
PangoFontDescription *desc);


Which returns a pointer to a PangoFont struct.

Who owns pF? Do I have to keep track of it and do a g_object_unref(pF)
when I'm finished with it?

Or will it freed when I do a g_object_unref( context)? Or is it freed
upon a different action altogether?

Thank you!

Martin Sevior


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