From 86b729150c300d9b6914fa9823a255268f80f8e5 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 27 Aug 2014 13:46:51 +0100 Subject: [PATCH] fix memleak in type.c see https://github.com/jcupitt/libvips/pull/164 --- ChangeLog | 1 + libvips/iofuncs/type.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4ac51ca8..b63a1b8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 21/8/14 started 7.40.7 - fix matlab load - fix memleak in tilecache [Lovell] +- fix memleak in VipsArray [Lovell] 12/8/14 started 7.40.6 - more doc fixes diff --git a/libvips/iofuncs/type.c b/libvips/iofuncs/type.c index 8206dd71..897f55cc 100644 --- a/libvips/iofuncs/type.c +++ b/libvips/iofuncs/type.c @@ -334,6 +334,7 @@ vips_area_free_array_object( GObject **array, VipsArea *area ) for( i = 0; i < area->n; i++ ) VIPS_FREEF( g_object_unref, array[i] ); + VIPS_FREE( array ); area->n = 0; }