_cairo_atomic_mutex not initialized
Submitted by gil..@..il.com
Assigned to Carl Worth @cworth
Description
Hi,
I compiled a static build of cairo on Windows with MSVC9. I'm using only the svg surface. If the the cairo_create call fails (because I set an invalid filename) _cairo_set_error is called which results in an access violation in the _cairo_atomic_int_cmpxchg function. The reason is that _cairo_atomic_mutex hasn't been initialized at that point.
If I call CAIRO_MUTEX_INIT(_cairo_atomic_mutex) or CAIRO_MUTEX_INITIALIZE() before that point everything works as expected.
Version: 1.9.6