[cairo-commit] src/cairo-pattern.c
Chris Wilson
ickle at kemper.freedesktop.org
Fri May 25 04:15:58 PDT 2007
src/cairo-pattern.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree f382c3e110f8078e83cbb9d73cfbb43b1506a11b (from fcdfda83655faf0eecbb2b5af09a05340fe422e6)
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri May 11 15:31:33 2007 +0100
[cairo-pattern] Fully initialise the error pattern.
_cairo_pattern_fini depends on the pattern being correctly initialised,
for example when calling _cairo_user_data_array_fini(), so we need to
initialize the whole pattern and not just set the type to SOLID when
creating a pattern for a surface in error.
diff --git a/src/cairo-pattern.c b/src/cairo-pattern.c
index ab2ca53..8bbbcfc 100644
--- a/src/cairo-pattern.c
+++ b/src/cairo-pattern.c
@@ -231,7 +231,7 @@ _cairo_pattern_init_for_surface (cairo_s
{
if (surface->status) {
/* Force to solid to simplify the pattern_fini process. */
- pattern->base.type = CAIRO_PATTERN_TYPE_SOLID;
+ _cairo_pattern_init (&pattern->base, CAIRO_PATTERN_TYPE_SOLID);
_cairo_pattern_set_error (&pattern->base, surface->status);
return;
}
More information about the cairo-commit
mailing list