diff --git a/TODO b/TODO index 95423cd2..1645055c 100644 --- a/TODO +++ b/TODO @@ -1,13 +1,3 @@ -- verify xml data against master for vips save and dzsave - -- curious - - $ vips tiffload_buffer images/sample.tif - (vips:18224): GLib-GObject-WARNING **: unable to set property 'buffer' of type 'VipsBlob' from value of type 'gchararray' - Trace/breakpoint trap (core dumped) - - - - vips linecache has access there twice! $ vips linecache diff --git a/libvips/iofuncs/vips.c b/libvips/iofuncs/vips.c index a92aa273..c18c9742 100644 --- a/libvips/iofuncs/vips.c +++ b/libvips/iofuncs/vips.c @@ -861,7 +861,6 @@ vips__xml_properties_meta( VipsImage *image, return( dbuf ); } str = vips_value_get_save_string( &save_value ); - g_value_unset( &save_value ); vips_dbuf_writef( dbuf, " \n" ); vips_dbuf_writef( dbuf, " " ); @@ -872,6 +871,8 @@ vips__xml_properties_meta( VipsImage *image, dbuf_write_amp( dbuf, str ); vips_dbuf_writef( dbuf, "\n" ); vips_dbuf_writef( dbuf, " \n" ); + + g_value_unset( &save_value ); } return( NULL );