free im_malloc() mem in postclose

This commit is contained in:
John Cupitt 2011-05-30 19:40:56 +01:00
parent a55e8d15bb
commit c0cbbbf415
2 changed files with 3 additions and 1 deletions

2
TODO
View File

@ -1,3 +1,5 @@
- also VipsFormat ... could this replace vips_image_new_from_string()? or
could we call this from vips_image_new_from_string()?

View File

@ -267,7 +267,7 @@ vips_malloc( VipsImage *image, size_t size )
#endif /*DEBUGM*/
if( image )
g_signal_connect( image, "close",
g_signal_connect( image, "postclose",
G_CALLBACK( vips_malloc_cb ), buf );
return( buf );