[cairo] Problems with cairo_destroy()
Gerdus van Zyl
gerdusvanzyl at gmail.com
Mon Feb 16 22:48:08 PST 2009
Also GTK should be managing the surface and that's probably why it
crashes if you mess with it.
On Tue, Feb 17, 2009 at 8:16 AM, a_s <abhidhnya.sonawane at gmail.com> wrote:
> Please reply.
> a_s wrote:
>> I had some doubts regarding cairo_destroy.
>> In my expose-event callback ,a use gdk_cairo_create().
>> I add images on the cairo context using cairo_paint().
>> When I do a cairo_destroy the context gets destroyed.But its surface
>> reference count is 5.
>> If I reduce the surface count to 0 the program crashes.
>> So what should I do?
>> Also what happens when I do a cairo_destroy()?Does the surface associated
>> with the context also get destroyed?
>> My program is giving memory leak because of these issues.
>> Please reply.
>> cairo mailing list
>> cairo at cairographics.org
> View this message in context: http://www.nabble.com/Problems-with-cairo_destroy%28%29-tp21973474p22051196.html
> Sent from the Free Desktop - Cairo - General mailing list archive at Nabble.com.
> cairo mailing list
> cairo at cairographics.org
More information about the cairo