diff options
author | Alexander Täschner <alexandertaeschner@googlemail.com> | 2017-06-12 12:49:44 +0200 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2017-08-21 16:35:27 -0700 |
commit | 5f90f0a706206ea3b940392bf1492fead832d99b (patch) | |
tree | 08445ae466009dc9ae1e7f85c0c9595019c607a5 | |
parent | 339fe9a7689dd13626410afabb77b12ad0f9f7d2 (diff) |
win32: Initialize mutexes for static builds for win32
For static win32 builds the mutexes are not initialized (for dynamic
builds it's done when the DLL is loaded). Therefore, add initialization
to the create surface calls.
Cc: Uli Schlachter <psychon@znc.in>
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r-- | src/win32/cairo-win32-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/win32/cairo-win32-device.c b/src/win32/cairo-win32-device.c index 741e49e33..c60c4948d 100644 --- a/src/win32/cairo-win32-device.c +++ b/src/win32/cairo-win32-device.c @@ -131,6 +131,8 @@ _cairo_win32_device_get (void) { cairo_win32_device_t *device; + CAIRO_MUTEX_INITIALIZE (); + if (__cairo_win32_device) return cairo_device_reference (__cairo_win32_device); |