Merge pull request #167 from lovell/webp-read-buffer-leak-7.40

Ensure Read struct is freed when reading WebP image data from a buffer
This commit is contained in:
John Cupitt 2014-08-28 16:40:40 +01:00
commit 0eecb1ba06

View File

@ -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 );
}