oops, forgot a _ref()
This commit is contained in:
parent
e14c5607b1
commit
12a13d3e39
@ -62,6 +62,8 @@ vips_binary_build( VipsObject *object )
|
||||
arithmetic->in = (VipsImage **) vips_object_local_array( object, 2 );
|
||||
arithmetic->in[0] = binary->left;
|
||||
arithmetic->in[1] = binary->right;
|
||||
g_object_ref( arithmetic->in[0] );
|
||||
g_object_ref( arithmetic->in[1] );
|
||||
|
||||
if( VIPS_OBJECT_CLASS( vips_binary_parent_class )->build( object ) )
|
||||
return( -1 );
|
||||
|
@ -370,6 +370,9 @@ vips_object_equal_arg( VipsObject *object,
|
||||
static gboolean
|
||||
vips_operation_equal( VipsOperation *a, VipsOperation *b )
|
||||
{
|
||||
if( a == b )
|
||||
return( TRUE );
|
||||
|
||||
if( G_OBJECT_TYPE( a ) == G_OBJECT_TYPE( b ) &&
|
||||
vips_operation_hash( a ) == vips_operation_hash( b ) &&
|
||||
!vips_argument_map( VIPS_OBJECT( a ),
|
||||
|
@ -1784,7 +1784,8 @@ vips_object_local_array_cb( GObject *parent, VipsObjectLocal *local )
|
||||
for( i = 0; i < local->n; i++ )
|
||||
VIPS_FREEF( g_object_unref, local->array[i] );
|
||||
|
||||
g_free( local->array );
|
||||
VIPS_FREEF( g_free, local->array );
|
||||
|
||||
g_free( local );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user