File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,10 @@ int vips__print_renders(void);
171
171
int vips__type_leak (void );
172
172
int vips__object_leak (void );
173
173
174
+ #ifdef HAVE_OPENSLIDE
175
+ int vips__openslideconnection_leak (void );
176
+ #endif /*HAVE_OPENSLIDE*/
177
+
174
178
/* iofuncs
175
179
*/
176
180
int vips__open_image_read (const char * filename );
Original file line number Diff line number Diff line change @@ -136,10 +136,6 @@ GQuark vips__image_pixels_quark = 0;
136
136
*/
137
137
static char * vips__max_coord_arg = NULL ;
138
138
139
- #ifdef HAVE_OPENSLIDE
140
- int vips__openslideconnection_leak (void );
141
- #endif /*HAVE_OPENSLIDE*/
142
-
143
139
/**
144
140
* vips_max_coord_get:
145
141
*
@@ -395,9 +391,9 @@ vips_leak(void)
395
391
n_leaks += vips_tracked_get_allocs ();
396
392
n_leaks += vips_tracked_get_mem ();
397
393
n_leaks += vips_tracked_get_files ();
398
- #ifdef HAVE_OPENSLIDE
394
+ #if defined( HAVE_OPENSLIDE ) && !defined( OPENSLIDE_MODULE )
399
395
n_leaks += vips__openslideconnection_leak ();
400
- #endif /*HAVE_OPENSLIDE*/
396
+ #endif /*defined( HAVE_OPENSLIDE) && !defined(OPENSLIDE_MODULE) */
401
397
402
398
if (vips_tracked_get_allocs () ||
403
399
vips_tracked_get_mem () ||
You can’t perform that action at this time.
0 commit comments