[cairo] ScaledFont::get_font_face() bug? (cairomm)

Jonathon Jongsma jonathon at quotidian.org
Fri Dec 5 07:07:51 PST 2008


Ian Britten wrote:
> Hi all,
> I'm wondering if someone could take a look at the implementation
> of ScaledFont::get_font_face()?  I'm wondering if that 'true'
> that is being passed to the FontFace constructor should maybe be
> a 'false'?
> 
> I'll skip all the gory details, but I'm getting an assertion
> that seems to indicate a face is being released too many times
> (I think...).
>      cairo-font-face.c:191: cairo_font_face_destroy: Assertion
>          `((*&(&font_face->ref_count)->ref_count) > 0)' failed
> 
> [ FWIW, I tried changing it to 'false' in the debugger and my
> problem went away, but that may not prove anything... ]
> 
> Thanks!
> Ian
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

Yes, you're right.  thanks for catching that.  I'll include that fix in the next release.

-- 
jonner


More information about the cairo mailing list