From 81de64cafc8454488b945ad06dfa8c8b5f56b1c0 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 24 Mar 2014 23:08:36 -0400 Subject: [PATCH] More TODOs. --- area_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/area_windows.go b/area_windows.go index d83cc0c..53c999a 100644 --- a/area_windows.go +++ b/area_windows.go @@ -127,6 +127,7 @@ func paintArea(s *sysData) { if r1 != 0 { // failure panic(fmt.Errorf("error freeing GDI+ graphics context to blit to (GDI+ error code %d; Windows last error %v)", r1, err)) } + // TODO this is the destructor of Image (Bitmap's base class); I don't see a specific destructor for Bitmap itself so r1, _, err = _gdipDisposeImage.Call(bitmap) if r1 != 0 { // failure panic(fmt.Errorf("error freeing GDI+ bitmap to blit (GDI+ error code %d; Windows last error %v)", r1, err))