[cairo] Problems with cairo_destroy()

a_s abhidhnya.sonawane at gmail.com
Mon Feb 16 22:16:38 PST 2009


Please reply.



a_s wrote:
> 
> Hello,
> 
> 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.
> Thankyou.
> 
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
> 

-- 
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.



More information about the cairo mailing list