summaryrefslogtreecommitdiff
path: root/src/cairo-debug.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-10-04 17:00:26 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-10-04 17:00:26 +0100
commitadd0959328117e2023db0ba2432ed29ecb93275e (patch)
tree5252b04fc8be5722d29d6c66491c794c49ec7d61 /src/cairo-debug.c
parenta4f20610afd18d58a964dbe84cc90c5723b2996d (diff)
[cairo-debug] Finalize mutexes along with other static data.
Initialize (so repeated calls of cairo_debug_reset_static_data() is safe) and finalize the mutexes with the reset of the static data.
Diffstat (limited to 'src/cairo-debug.c')
-rw-r--r--src/cairo-debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo-debug.c b/src/cairo-debug.c
index 6a50353c..cdd3ce94 100644
--- a/src/cairo-debug.c
+++ b/src/cairo-debug.c
@@ -59,6 +59,8 @@
void
cairo_debug_reset_static_data (void)
{
+ CAIRO_MUTEX_INITIALIZE ();
+
_cairo_font_reset_static_data ();
#if CAIRO_HAS_FT_FONT
@@ -66,4 +68,6 @@ cairo_debug_reset_static_data (void)
#endif
_cairo_pattern_reset_static_data ();
+
+ CAIRO_MUTEX_FINALIZE ();
}