[cairo] Problems with cairo_destroy()
abhidhnya sonawane
abhidhnya.sonawane at gmail.com
Thu Feb 12 02:33:45 PST 2009
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20090212/bdd6dc44/attachment.html
More information about the cairo
mailing list