diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-11 16:17:34 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-02-15 13:50:42 +0000 |
commit | fc732c3aaa53d8abcea46ad28da696ad08d09b63 (patch) | |
tree | 40b660346cad663f7f9c22e3bc70ce21a8d014c4 /src/cairo-debug.c | |
parent | 38fcc015a5106e5007035c22355da863b3bc9def (diff) |
[cairo-scaled-font] Create error objects on demand.
In order to correctly report the error back to the user during the
creation of a scaled font, we need to support a nil object per error.
Instead of statically allocating all possible errors, lazily allocate
the nil object the first time we need to report a particular error.
This fixes the misreporting of an INVALID_MATRIX or NULL_POINTER that
are common user errors during the construction of a scaled font.
Diffstat (limited to 'src/cairo-debug.c')
-rw-r--r-- | src/cairo-debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-debug.c b/src/cairo-debug.c index c4b7edfe..da205274 100644 --- a/src/cairo-debug.c +++ b/src/cairo-debug.c @@ -69,5 +69,7 @@ cairo_debug_reset_static_data (void) _cairo_pattern_reset_static_data (); + _cairo_scaled_font_reset_static_data (); + CAIRO_MUTEX_FINALIZE (); } |