summaryrefslogtreecommitdiff
path: root/src/cairo-debug.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-12 10:41:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-12 10:41:09 +0100
commit9b7cc7641b691a3b9e3d5edd51053c9a095d9c5a (patch)
tree71141403c08da3eeb6a0b1d67971e57ce3081e94 /src/cairo-debug.c
parent9b6617a3b3b31d52e6646400b16ec56c754bfebd (diff)
downloadcairo-9b7cc7641b691a3b9e3d5edd51053c9a095d9c5a.tar.gz
cairo: Create error objects for cairo_t
Perform an early check for error status and prevent creation of a full object. This means that we do not pass down error objects to the initialisation routines and so can survive without paranoia inside the library. It also has brings consistency that like the other constructors, no object is created in error and we can skip the cairo_destroy() if we choose (and we don't waste one of the precious zero-alloc context slots. Fixes crash in test/a8-mask introduced by 1a544361e845.
Diffstat (limited to 'src/cairo-debug.c')
-rw-r--r--src/cairo-debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-debug.c b/src/cairo-debug.c
index 05ca16ee6..712ce9394 100644
--- a/src/cairo-debug.c
+++ b/src/cairo-debug.c
@@ -81,6 +81,8 @@ cairo_debug_reset_static_data (void)
_cairo_drm_device_reset_static_data ();
#endif
+ _cairo_reset_static_data ();
+
CAIRO_MUTEX_FINALIZE ();
}