From bac8e42eae10f04a4866684024f7a8729c1c57d0 Mon Sep 17 00:00:00 2001 From: Tomas Aparicio Date: Thu, 3 Aug 2017 20:40:56 +0200 Subject: [PATCH] fix(resize): runtime.KeepAlive is only Go --- resize.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/resize.go b/resize.go index 0cd5450..1e2725e 100644 --- a/resize.go +++ b/resize.go @@ -9,14 +9,12 @@ import "C" import ( "errors" "math" - "runtime" ) // Resize is used to transform a given image as byte buffer // with the passed options. func Resize(buf []byte, o Options) ([]byte, error) { defer C.vips_thread_shutdown() - defer runtime.KeepAlive(buf) image, imageType, err := loadImage(buf) if err != nil {