Hi,
With the current dfb cvs version on mips using libpng-1.2.16 I get a memory
leak in interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c
If I free image_argb as in the diff below it fixes it, am I missing
something.
Index: interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c
===================================================================
RCS file:
/git/directfb/core/DirectFB.git/master/interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c,v
retrieving revision 1.66
diff -u interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c
--- interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c revision
1.66
+++ interfaces/IDirectFBImageProvider/idirectfbimageprovider_png.c working
copy
@@ -447,6 +447,8 @@
dfb_scale_linear_32( image_argb, data->width,
data->height,
dst,
pitch,
&rect,
dst_surface,
&clip
);
+
+ D_FREE(image_argb);
}
}
}
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev