diff --git a/examples/screen/main.go b/examples/screen/main.go index aaa04af..4bffafe 100644 --- a/examples/screen/main.go +++ b/examples/screen/main.go @@ -20,7 +20,9 @@ import ( func bitmap() { bit := robotgo.CaptureScreen() + defer robotgo.FreeBitmap(bit) fmt.Println("abitMap...", bit) + gbit := robotgo.ToBitmap(bit) fmt.Println("bitmap...", gbit.Width)