[cairo] [patch] image: increase reference count for parent

Henry (Yu) Song - SISA hsong at sisa.samsung.com
Tue Jan 29 09:18:57 PST 2013


Maybe don't call cairo_surface_destroy (parent) during unmap_image() ?

Thanks

Henry

________________________________________
From: cairo-bounces+henry.song=samsung.com at cairographics.org [cairo-bounces+henry.song=samsung.com at cairographics.org] on behalf of Chris Wilson [chris at chris-wilson.co.uk]
Sent: Tuesday, January 29, 2013 8:32 AM
To: Henry (Yu) Song - SISA
Cc: cairo at cairographics.org
Subject: Re: [cairo] [patch] image: increase reference count for parent

On Tue, Jan 29, 2013 at 04:21:58PM +0000, Henry (Yu) Song - SISA wrote:
> From 994a83e34b61d4a758c374849f2d7ac6f94aca0b Mon Sep 17 00:00:00 2001
> From: Henry Song <henry.song at samsung.com>
> Date: Tue, 29 Jan 2013 08:19:52 -0800
> Subject: [PATCH] image: increase reference of parent when setting parent

That ends up creating reference cycles. I'm not sure the best way to
tackle it other than through complex rules.
-Chris

--
Chris Wilson, Intel Open Source Technology Centre
--
cairo mailing list
cairo at cairographics.org
http://lists.cairographics.org/mailman/listinfo/cairo


More information about the cairo mailing list