More TODOs.

This commit is contained in:
Pietro Gagliardi 2014-03-24 23:08:36 -04:00
parent 30a31b1617
commit 81de64cafc
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ func paintArea(s *sysData) {
if r1 != 0 { // failure 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)) 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) r1, _, err = _gdipDisposeImage.Call(bitmap)
if r1 != 0 { // failure if r1 != 0 { // failure
panic(fmt.Errorf("error freeing GDI+ bitmap to blit (GDI+ error code %d; Windows last error %v)", r1, err)) panic(fmt.Errorf("error freeing GDI+ bitmap to blit (GDI+ error code %d; Windows last error %v)", r1, err))