[cairo] [patch] add reference count for image surface->parent
Henry (Yu) Song - SISA
hsong at sisa.samsung.com
Thu Aug 30 16:11:32 PDT 2012
>From 53c61cf343ff0ce80845db526fc0bef3e6c8066c Mon Sep 17 00:00:00 2001
From: Henry Song <henry.song at samsung.com>
Date: Thu, 30 Aug 2012 16:10:08 -0700
Subject: [PATCH] add add a reference count to image_surface->parent, this
fixes crashes map-all-to-image, map-bit-to-image,
map-to-image-fill and xcb-huge-image-shm test cases, where
the target surface does not support BGRA/BGR,
---
src/cairo-image-surface-inline.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cairo-image-surface-inline.h b/src/cairo-image-surface-inline.h
index f6bed71..1294345 100644
--- a/src/cairo-image-surface-inline.h
+++ b/src/cairo-image-surface-inline.h
@@ -54,6 +54,7 @@ _cairo_image_surface_set_parent (cairo_image_surface_t *image,
cairo_surface_t *parent)
{
image->parent = parent;
+ cairo_surface_reference (parent);
}
static inline cairo_bool_t
--
1.7.9.5
More information about the cairo
mailing list