"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libvips/iofuncs/object.c" between
vips-8.10.6.tar.gz and vips-8.11.0.tar.gz

About: VIPS is a free image processing system (see also the GUI nip2).

object.c  (vips-8.10.6):object.c  (vips-8.11.0)
skipping to change at line 3087 skipping to change at line 3087
* freed. Handy for creating a set of temporary images for a function. * freed. Handy for creating a set of temporary images for a function.
* *
* The array is NULL-terminated, ie. contains an extra NULL element at the * The array is NULL-terminated, ie. contains an extra NULL element at the
* end. * end.
* *
* Example: * Example:
* *
* |[ * |[
* VipsObject **t; * VipsObject **t;
* *
* t = vips_object_local_array( a, 5 ); * t = vips_object_local_array( parent, 5 );
* if( * if(
* vips_add( a, b, &t[0], NULL ) || * vips_add( a, b, &t[0], NULL ) ||
* vips_invert( t[0], &t[1], NULL ) || * vips_invert( t[0], &t[1], NULL ) ||
* vips_add( t[1], t[0], &t[2], NULL ) || * vips_add( t[1], t[0], &t[2], NULL ) ||
* vips_costra( t[2], out, NULL ) ) * vips_costra( t[2], out, NULL ) )
* return( -1 ); * return( -1 );
* ]| * ]|
* *
* See also: vips_object_local(). * See also: vips_object_local().
* *
skipping to change at line 3170 skipping to change at line 3170
vips_object_summary_class( class, &buf ); vips_object_summary_class( class, &buf );
vips_buf_appends( &buf, ", " ); vips_buf_appends( &buf, ", " );
vips_object_summary( object, &buf ); vips_object_summary( object, &buf );
fprintf( stderr, "%s\n", vips_buf_all( &buf ) ); fprintf( stderr, "%s\n", vips_buf_all( &buf ) );
*n += 1; *n += 1;
return( NULL ); return( NULL );
} }
void int
vips_object_print_all( void ) vips__object_leak( void )
{ {
int n_leaks;
n_leaks = 0;
/* Don't count static objects.
*/
if( vips__object_all && if( vips__object_all &&
g_hash_table_size( vips__object_all ) > g_hash_table_size( vips__object_all ) >
vips_object_n_static() ) { vips_object_n_static() ) {
int n;
fprintf( stderr, "%d objects alive:\n", fprintf( stderr, "%d objects alive:\n",
g_hash_table_size( vips__object_all ) ); g_hash_table_size( vips__object_all ) );
n = 0;
vips_object_map( vips_object_map(
(VipsSListMap2Fn) vips_object_print_all_cb, &n, NULL ); (VipsSListMap2Fn) vips_object_print_all_cb,
&n_leaks, NULL );
} }
vips__type_leak(); return( n_leaks );
}
void
vips_object_print_all( void )
{
(void) vips__object_leak();
(void) vips__type_leak();
} }
static void * static void *
vips_object_sanity_all_cb( VipsObject *object, void *a, void *b ) vips_object_sanity_all_cb( VipsObject *object, void *a, void *b )
{ {
(void) vips_object_sanity( object ); (void) vips_object_sanity( object );
return( NULL ); return( NULL );
} }
 End of changes. 7 change blocks. 
8 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)