[Swfdec] [RFC] check return of mallocs in swfdec/jpeg/

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Fri May 30 09:34:12 PDT 2008


Benjamin Otte wrote:
> swfdec is glib code. As such it uses g_malloc and aborts when malloc fails.
> The fact that the jpeg code does not use g_malloc is a bug and should
> be fixed by putting #define malloc g_malloc in cogcompat.h, which is
> what I'll do.

Like the patch attached? BTW i'm reattaching the leak fix patch.

thanks,
rm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_glib_memory_functions.diff
Type: text/x-diff
Size: 1108 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/swfdec/attachments/20080530/d2533b06/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-leak-in-jpeg_decode_argb.diff
Type: text/x-diff
Size: 559 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/swfdec/attachments/20080530/d2533b06/attachment-0001.diff 


More information about the Swfdec mailing list