Skip to content

Commit 66e3c81

Browse files
committed
Ensure VImage::set uses class to determine type
Prevents null GType and associated segfault
1 parent 4073f80 commit 66e3c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cplusplus/VImage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ VOption::set( const char *name, const VObject value )
193193
{
194194
Pair *pair = new Pair( name );
195195
VipsObject *object = value.get_object();
196-
GType type = G_VALUE_TYPE( object );
196+
GType type = G_VALUE_TYPE( VIPS_OBJECT_GET_CLASS( object ) );
197197

198198
pair->input = true;
199199
g_value_init( &pair->value, type );

0 commit comments

Comments
 (0)