Harinandan S wrote:
> Hi All,
> 
> I found out the reason for leak. It was from GTK+ DirectFB backend and
> not from DirectFB library. Functions which were responsible for
> de-allocating memory in DirectFB were not called. This resulted in
> accumulation of memory.
> 
> The functions for deallocating memory in GTK+ DFB backend was under an
>   #if (DIRECTFB_MAJOR_VERSION >= 1)
> and I was using DirectFB 1.1.1. But DIRECTFB_MAJOR_VERSION was not
> defined anywhere in Gtk+ 2.12.2 so the compiler was taking it to be 0
> by default and thus functions were not being called to de-allocate
> memory. After defining it this leak has not been observed.

Thanks for digging this up. The code should include <directfb_version.h>.

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to