On Sun, 22 Aug 2010, Enlightenment SVN wrote:
> Log:
> calloc dst mgr to be sure.
update ChangeLog ?
Vincent
>
> Author: raster
> Date: 2010-08-22 15:10:29 -0700 (Sun, 22 Aug 2010)
> New Revision: 51542
>
> Modified:
> trunk/eet/src/lib/eet_image.c
>
> Modified: trunk/eet/src/lib/eet_image.c
> ===================================================================
> --- trunk/eet/src/lib/eet_image.c 2010-08-22 21:53:05 UTC (rev 51541)
> +++ trunk/eet/src/lib/eet_image.c 2010-08-22 22:10:29 UTC (rev 51542)
> @@ -130,6 +130,7 @@
> unsigned char *buf;
> size_t len;
> int failed;
> + struct jpeg_membuf_dst *self;
> };
>
> static void
> @@ -166,7 +167,7 @@
> static void
> _eet_jpeg_membuf_dst_term(j_compress_ptr cinfo)
> {
> - struct jpeg_membuf_dst *dst = (struct jpeg_membuf_dst *)cinfo->dest;
> + struct jpeg_membuf_dst *dst = ((struct jpeg_membuf_dst
> *)cinfo->dest)->self;
>
> if (dst->failed)
> {
> @@ -191,7 +192,7 @@
> {
> struct jpeg_membuf_dst *dst;
>
> - dst = malloc(sizeof(*dst));
> + dst = calloc(1, sizeof(*dst));
> if (!dst)
> return -1;
>
> @@ -202,6 +203,7 @@
> return -1;
> }
>
> + dst->self = dst;
> dst->len = 32768;
>
> cinfo->dest = &dst->pub;
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel