diff --git a/include/util.h b/include/util.h index de50dc2..f42e192 100644 --- a/include/util.h +++ b/include/util.h @@ -24,7 +24,6 @@ void* gcmalloc( size_t size ); void* gccalloc( size_t nmemb, size_t size ); void* gcrealloc( void* ptr, size_t size ); -void gcfree( void* ptr ); void gcfreeall(); char* gcstrdup( const char* str ); char* gcreport(); @@ -44,9 +43,9 @@ static size_t gc_count = 0; #define gcmalloc( size ) malloc( size ) #define gccalloc( size, num ) calloc( size, num ) #define gcrealloc( ptr, size ) realloc( ptr, size ) -#define gcfree( ptr ) free( ptr ) #define gcstrdup( size ) strdup( size ) #endif +void gcfree( void* ptr ); /* Sanitise a given name. Names may only contain alpha-numeric * characters, hyphens, underscores and full stop characters. diff --git a/src/photo.c b/src/photo.c index b32c703..1c23aa1 100644 --- a/src/photo.c +++ b/src/photo.c @@ -480,7 +480,7 @@ char* resize_photo( struct photo_meta* dest, MagickSetImageCompressionQuality( wand, (unsigned long)quality ); - MagickSetImageInterlaceScheme( wand, PartitionInterlace ); + MagickSetImageInterlaceScheme( wand, LineInterlace ); if (MagickWriteImage( wand, cache_path ) == MagickFalse) { ExceptionType severity; diff --git a/src/util.c b/src/util.c index 63bdeae..7848eab 100644 --- a/src/util.c +++ b/src/util.c @@ -148,6 +148,10 @@ char* gcstrdup( const char* str ) { } #else +void gcfree( void* ptr ) { + free( ptr ); +} + void gcfreeall() { }