[cairo-commit] src/win32
Bryce Harrington
bryce at kemper.freedesktop.org
Mon Aug 21 23:36:02 UTC 2017
src/win32/cairo-win32-device.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 5f90f0a706206ea3b940392bf1492fead832d99b
Author: Alexander Täschner <alexandertaeschner at googlemail.com>
Date: Mon Jun 12 12:49:44 2017 +0200
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 at znc.in>
Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
diff --git a/src/win32/cairo-win32-device.c b/src/win32/cairo-win32-device.c
index 741e49e3..c60c4948 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);
More information about the cairo-commit
mailing list