Ensure VImage::set uses class to determine type

Prevents null GType and associated segfault
This commit is contained in:
Lovell Fuller 2020-09-13 19:53:19 +01:00
parent 4073f8082b
commit 66e3c81fe7
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ VOption::set( const char *name, const VObject value )
{
Pair *pair = new Pair( name );
VipsObject *object = value.get_object();
GType type = G_VALUE_TYPE( object );
GType type = G_VALUE_TYPE( VIPS_OBJECT_GET_CLASS( object ) );
pair->input = true;
g_value_init( &pair->value, type );