[cairo] Problems with cairo_destroy()

Gerdus van Zyl gerdusvanzyl at gmail.com
Mon Feb 16 22:48:08 PST 2009


see http://www.nabble.com/Memory-leaks-to21625714.html#a21625714

Also GTK should be managing the surface and that's probably why it
crashes if you mess with it.

~G

On Tue, Feb 17, 2009 at 8:16 AM, a_s <abhidhnya.sonawane at gmail.com> wrote:
>
> 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.
>
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>


More information about the cairo mailing list