From 0e0cf1481c7b7e6324b7ddf2276c5a162cda767c Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 20 Sep 2011 14:52:02 +0100 Subject: [PATCH] g_free/im_free mixups --- TODO | 8 ++++++++ libvips/iofuncs/object.c | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 35e989df..2c9ce0f2 100644 --- a/TODO +++ b/TODO @@ -3,6 +3,14 @@ +- im_csv2vips() gets confused by quotes and commas, eg. + + NP_001121179.1,"serine proteinase inhibitor, clade A, member ",ITPNLAEFAFSLYR,0.95588235294118,0.96176470588235, ... + + + + + - cache work ... see notes in file diff --git a/libvips/iofuncs/object.c b/libvips/iofuncs/object.c index ca643b77..d477f15a 100644 --- a/libvips/iofuncs/object.c +++ b/libvips/iofuncs/object.c @@ -754,7 +754,9 @@ vips_object_set_property( GObject *gobject, char **member = &G_STRUCT_MEMBER( char *, object, argument_class->offset ); - VIPS_SETSTR( *member, g_value_get_string( value ) ); + if( *member ) + g_free( *member ); + *member = g_value_dup_string( value ); } else if( G_IS_PARAM_SPEC_OBJECT( pspec ) ) { GObject **member = &G_STRUCT_MEMBER( GObject *, object,