g_free/im_free mixups

This commit is contained in:
John Cupitt 2011-09-20 14:52:02 +01:00
parent 4b2c8587b2
commit 0e0cf1481c
2 changed files with 11 additions and 1 deletions

8
TODO
View File

@ -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

View File

@ -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,