[cairo-bugs] [Bug 4692] _global_image_glyph_cache_mutex is not
initialized in win32 + static builds
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Dec 18 11:12:50 PST 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=4692
------- Additional Comments From inbox at b-q-c.com 2005-12-19 06:08 -------
Confirmed (w32 cross-compile)
Fix:
--- cairo-win32-surface.c~ 2005-10-03 16:44:43.000000000 -0400
+++ cairo-win32-surface.c 2005-12-18 13:58:21.000000000 -0500
@@ -1062,6 +1062,7 @@
CRITICAL_SECTION cairo_toy_font_face_hash_table_mutex;
CRITICAL_SECTION cairo_scaled_font_map_mutex;
CRITICAL_SECTION cairo_ft_unscaled_font_map_mutex;
+CRITICAL_SECTION _global_image_glyph_cache_mutex;
BOOL WINAPI
DllMain (HINSTANCE hinstDLL,
@@ -1072,11 +1073,13 @@
{
case DLL_PROCESS_ATTACH:
/* every 'mutex' from CAIRO_MUTEX_DECALRE needs to be initialized here */
+ InitializeCriticalSection (&_global_image_glyph_cache_mutex);
InitializeCriticalSection (&cairo_toy_font_face_hash_table_mutex);
InitializeCriticalSection (&cairo_scaled_font_map_mutex);
InitializeCriticalSection (&cairo_ft_unscaled_font_map_mutex);
break;
case DLL_PROCESS_DETACH:
+ DeleteCriticalSection (&_global_image_glyph_cache_mutex);
DeleteCriticalSection (&cairo_toy_font_face_hash_table_mutex);
DeleteCriticalSection (&cairo_scaled_font_map_mutex);
DeleteCriticalSection (&cairo_ft_unscaled_font_map_mutex);
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the cairo-bugs
mailing list