Skip to content

Commit e0f616a

Browse files
committed
Destroy bitmap after getting hex.
1 parent fc9df2a commit e0f616a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/robotjs.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,11 @@ NAN_METHOD(getColor)
662662

663663
color = MMRGBHexAtPoint(bitmap, x, y);
664664

665-
//destroyMMBitmap(bitmap);
666665
char hex[7];
667666

668667
padHex(color, hex);
668+
669+
destroyMMBitmap(bitmap);
669670

670671
info.GetReturnValue().Set(Nan::New(hex).ToLocalChecked());
671672

0 commit comments

Comments
 (0)