From 610a301d4e7ea6d163dfce9cd560ec0ff3a93faf Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 10 Dec 2017 17:54:50 +0000 Subject: [PATCH] oop, forgot to free the windows --- libvips/iofuncs/window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvips/iofuncs/window.c b/libvips/iofuncs/window.c index 7a243163..3721c5d2 100644 --- a/libvips/iofuncs/window.c +++ b/libvips/iofuncs/window.c @@ -237,6 +237,9 @@ vips_window_set( VipsWindow *window, int top, int height ) return( -1 ); } + if( vips_window_unmap( window ) ) + return( -1 ); + if( !(baseaddr = vips__mmap( window->im->fd, 0, pagelength, pagestart )) ) return( -1 );