From 257d747f7d512259a3c4f8cd9ac16531240aee49 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 14 Nov 2020 13:15:42 +0900 Subject: [PATCH] shareable: Refactoring --- internal/shareable/image_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/shareable/image_test.go b/internal/shareable/image_test.go index dabc6ad35..6456cae72 100644 --- a/internal/shareable/image_test.go +++ b/internal/shareable/image_test.go @@ -285,6 +285,7 @@ func TestExtend(t *testing.T) { const w0, h0 = 100, 100 img0 := NewImage(w0, h0) defer img0.MarkDisposed() + p0 := make([]byte, 4*w0*h0) for i := 0; i < w0*h0; i++ { p0[4*i] = byte(i) @@ -293,7 +294,6 @@ func TestExtend(t *testing.T) { p0[4*i+3] = byte(i) } img0.ReplacePixels(p0) - defer img0.MarkDisposed() const w1, h1 = minImageSizeForTesting + 1, 100 img1 := NewImage(w1, h1)