Using 1.8.6 on windows (with pixman 0.15.2).  Built using instructions here: <br><a href="http://www.williamcyap.com/software/cairo-lib/compiling-cairo-for-windows.xhtml">http://www.williamcyap.com/software/cairo-lib/compiling-cairo-for-windows.xhtml</a><br>
<br>produces a crash witin cairo_destroy() somewhere.<br><br>The code is as follows:<br><br>#include &lt;cairo.h&gt;<br>#include &lt;cairo-pdf.h&gt;<br><br>int main (int argc, char *argv[])<br>{<br>    cairo_surface_t *surface;<br>
    cairo_t *cr;<br> <br>    surface = cairo_pdf_surface_create (&quot;hellocairo.pdf&quot; , 504, 648);<br>    cr = cairo_create (surface);<br>    cairo_set_source_rgb(cr, 0, 0, 0);<br>    cairo_select_font_face (cr, &quot;serif&quot;, CAIRO_FONT_SLANT_NORMAL,  CAIRO_FONT_WEIGHT_NORMAL);<br>
    cairo_set_font_size (cr, 40.0);<br>    cairo_move_to(cr, 10.0, 50.0);<br>    cairo_show_text(cr, &quot;Hello, Cairo!&quot;);<br>    cairo_show_page(cr);<br>    cairo_surface_destroy(surface);<br>    cairo_destroy(cr);<br>
<br>    return 0;<br>}<br><br>the stack is as follows:<br><br>     ntdll.dll!7c90120e()     <br>     [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]    <br>     ntdll.dll!7c96c201()     <br>
     ntdll.dll!7c96c63e()     <br>     ntdll.dll!7c9603b0()     <br>     kernel32.dll!7c85f8d7()     <br>     msvcr80d.dll!_CrtIsValidHeapPointer(const void * pUserData=0x00955c50)  Line 2072    C++<br>     msvcr80d.dll!_free_dbg_nolock(void * pUserData=0x00955c50, int nBlockUse=1)  Line 1279 + 0x9 bytes    C++<br>
     msvcr80d.dll!_free_dbg(void * pUserData=0x00955c50, int nBlockUse=1)  Line 1220 + 0xd bytes    C++<br>     msvcr80d.dll!free(void * pUserData=0x00955c50)  Line 1178 + 0xb bytes    C++<br>     libcairod.dll!_cairo_truetype_subset_fini(_cairo_truetype_subset * subset=0x0012f22c)  Line 1171 + 0xe bytes    C<br>
     libcairod.dll!_cairo_pdf_surface_emit_truetype_font_subset(_cairo_pdf_surface * surface=0x00436fe0, _cairo_scaled_font_subset * font_subset=0x0012f4c8)  Line 3451 + 0xc bytes    C<br>     libcairod.dll!_cairo_pdf_surface_emit_unscaled_font_subset(_cairo_scaled_font_subset * font_subset=0x0012f4c8, void * closure=0x00436fe0)  Line 3722 + 0xd bytes    C<br>
     libcairod.dll!_cairo_sub_font_collect(void * entry=0x0043af78, void * closure=0x0012f614)  Line 578 + 0x15 bytes    C<br>     libcairod.dll!_cairo_scaled_font_subsets_foreach_internal(_cairo_scaled_font_subsets * font_subsets=0x004386b8, _cairo_status (_cairo_scaled_font_subset *, void *)* font_subset_callback=0x100b67a0, void * closure=0x00436fe0, cairo_subsets_foreach_type_t type=CAIRO_SUBSETS_FOREACH_UNSCALED)  Line 889 + 0xd bytes    C<br>
     libcairod.dll!_cairo_scaled_font_subsets_foreach_unscaled(_cairo_scaled_font_subsets * font_subsets=0x004386b8, _cairo_status (_cairo_scaled_font_subset *, void *)* font_subset_callback=0x100b67a0, void * closure=0x00436fe0)  Line 918 + 0x13 bytes    C<br>
     libcairod.dll!_cairo_pdf_surface_emit_font_subsets(_cairo_pdf_surface * surface=0x00436fe0)  Line 3774 + 0x18 bytes    C<br>     libcairod.dll!_cairo_pdf_surface_finish(void * abstract_surface=0x00436fe0)  Line 1195 + 0x9 bytes    C<br>
     libcairod.dll!cairo_surface_finish(_cairo_surface * surface=0x00436fe0)  Line 530 + 0x10 bytes    C<br>     libcairod.dll!_cairo_paginated_surface_finish(void * abstract_surface=0x00433998)  Line 172 + 0xf bytes    C<br>
     libcairod.dll!cairo_surface_finish(_cairo_surface * surface=0x00433998)  Line 530 + 0x10 bytes    C<br>     libcairod.dll!cairo_surface_destroy(_cairo_surface * surface=0x00433998)  Line 435 + 0x9 bytes    C<br>     libcairod.dll!_cairo_gstate_fini(_cairo_gstate * gstate=0x00438a30)  Line 205 + 0xf bytes    C<br>
     libcairod.dll!cairo_destroy(_cairo * cr=0x00438a10)  Line 228 + 0xc bytes    C<br>&gt;    hellocairo.exe!main(int argc=2, char * * argv=0x00436f58)  Line 49 + 0xc bytes    C<br>     hellocairo.exe!__tmainCRTStartup()  Line 597 + 0x19 bytes    C<br>
     hellocairo.exe!mainCRTStartup()  Line 414    C<br>     kernel32.dll!7c817067()     <br><br>Any help appreciated.<br><br>Thanks<br><br>Daz<br><br>