Fix small memory leak in openslide loader

vips_image_set_string takes a copy of the string
This commit is contained in:
Lovell Fuller 2015-04-14 20:24:02 +01:00
parent da7250badb
commit 3611d0f9df

View File

@ -380,6 +380,7 @@ readslide_new( const char *filename, VipsImage *out,
associated = g_strjoinv( ", ", (char **)
openslide_get_associated_image_names( rslide->osr ) );
vips_image_set_string( out, "slide-associated-images", associated );
VIPS_FREE( associated );
return( rslide );
}