Hello,<br><br>I had some doubts regarding cairo_destroy.<br>In my expose-event callback ,a use gdk_cairo_create().<br>I add images on the cairo context using cairo_paint().<br><br>When I do a cairo_destroy the context gets destroyed.But its surface reference count is 5.<br>
If I reduce the surface count to 0 the program crashes.<br>So what should I do?<br><br>Also what happens when I do a cairo_destroy()?Does the surface associated with the context also get destroyed?<br><br>My program is giving memory leak because of these issues.<br>
Please reply.<br>Thankyou.<br>