fix compiler warning

This commit is contained in:
John Cupitt 2015-04-15 08:56:12 +01:00
parent 9958d2b821
commit d8ea72895a
1 changed files with 5 additions and 3 deletions

View File

@ -228,6 +228,7 @@ readslide_new( const char *filename, VipsImage *out,
const char *error;
const char *background;
const char * const *properties;
char *associated_names;
if( level &&
associated ) {
@ -377,10 +378,11 @@ readslide_new( const char *filename, VipsImage *out,
openslide_get_property_value( rslide->osr,
*properties ) );
associated = g_strjoinv( ", ", (char **)
associated_names = g_strjoinv( ", ", (char **)
openslide_get_associated_image_names( rslide->osr ) );
vips_image_set_string( out, "slide-associated-images", associated );
VIPS_FREE( associated );
vips_image_set_string( out,
"slide-associated-images", associated_names );
VIPS_FREE( associated_names );
return( rslide );
}