[cairo] Problems with cairo_destroy()
abhidhnya.sonawane at gmail.com
Thu Feb 12 02:33:45 PST 2009
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo