KamijoTakashi schrieb:
> Hi,
> 
> While changing the memory allocating scheme used in DirectFB for use in an 
> embedded environment,
> I noticed some code calls malloc and free directly.
> 
> 
> #define D_FREE   free => #define D_FREE   my_free
> #define D_MALLOC   malloc => #define D_MALLOC   my_malloc
> ...
> 
> 
> DirectFB-1.0.0-rc2/src/display/idirectfbsurface.c
> function : IDirectFBSurface_FillRectangles
> line : 1301, 1315
> 
> Shouldn't it use D_MALLOC?

It wasn't using D_MALLOC because its purpose was allocation
debugging only at that time, which we wanted to avoid for these
close malloc/free calls in the same function.

In the sense of a wrapper for malloc we should indeed fix this.

I'm committing the change shortly.

-- 
Best regards,
   Denis Oliver Kropp

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

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to