From bdf7126e8fc6e3e119ab0229a8c699cbf439f8b4 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 28 Aug 2014 15:54:10 +0100 Subject: [PATCH] Correct VipsArea ref count in PNG buffer output --- libvips/foreign/pngsave.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvips/foreign/pngsave.c b/libvips/foreign/pngsave.c index 6bacf39d..50465ac8 100644 --- a/libvips/foreign/pngsave.c +++ b/libvips/foreign/pngsave.c @@ -211,6 +211,8 @@ vips_foreign_save_png_buffer_build( VipsObject *object ) g_object_set( object, "buffer", area, NULL ); + vips_area_unref( area ); + return( 0 ); }