oops, forgot a _ref()

This commit is contained in:
John Cupitt 2011-10-30 21:20:16 +00:00
parent e14c5607b1
commit 12a13d3e39
3 changed files with 7 additions and 1 deletions

View File

@ -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 );

View File

@ -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 ),

View File

@ -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 );
}