On Mon, 1 May 2017 21:11:02 -0400, Louis M wrote: > cairo_font_face_destroy(font_face); > printf("Refcount=%d\n", cairo_font_face_get_reference_count(font_face)); You are looking at garbage pointed to by an invalid pointer.