diff --git a/ChangeLog b/ChangeLog index 0ebb3a53..3a21991d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,9 +4,12 @@ - add vips_resize() 21/8/14 started 7.40.7 -- fix matlab load +- width and height were swapped in matlab load +- set interpretation more carefully on matlab load - fix memleak in tilecache [Lovell] - fix memleak in VipsArray [Lovell] +- fix memleak in webp load from buffer [Lovell] +- fix memleak in png save to buffer [Lovell] 12/8/14 started 7.40.6 - more doc fixes diff --git a/libvips/foreign/pngsave.c b/libvips/foreign/pngsave.c index 6bacf39d..50465ac8 100644 --- a/libvips/foreign/pngsave.c +++ b/libvips/foreign/pngsave.c @@ -211,6 +211,8 @@ vips_foreign_save_png_buffer_build( VipsObject *object ) g_object_set( object, "buffer", area, NULL ); + vips_area_unref( area ); + return( 0 ); } diff --git a/libvips/foreign/webp2vips.c b/libvips/foreign/webp2vips.c index 5fde4622..1975df42 100644 --- a/libvips/foreign/webp2vips.c +++ b/libvips/foreign/webp2vips.c @@ -298,6 +298,8 @@ vips__webp_read_buffer( void *buf, size_t len, VipsImage *out ) if( read_image( read, out ) ) return( -1 ); + read_free( read ); + return( 0 ); }