Fix small memory leak in openslide loader
vips_image_set_string takes a copy of the string
This commit is contained in:
parent
da7250badb
commit
3611d0f9df
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user