From ed4cd67fb3888946f981c3b79f8e49f194773eec Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 3 May 2017 23:15:03 +0900 Subject: [PATCH] graphics: finalizers must be reset when disposing --- image.go | 1 + 1 file changed, 1 insertion(+) diff --git a/image.go b/image.go index 04f90455c..449e42dc2 100644 --- a/image.go +++ b/image.go @@ -169,6 +169,7 @@ func (i *Image) Dispose() error { } restorable.Images().Remove(i.restorable) i.restorable = nil + runtime.SetFinalizer(i, nil) return nil }