Ensure VImage::set uses class to determine type
Prevents null GType and associated segfault
This commit is contained in:
parent
4073f8082b
commit
66e3c81fe7
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user