Skip to content

Commit

Permalink
FIX: leaking OS handle eats memory when converting face to image
Browse files Browse the repository at this point in the history
  • Loading branch information
hiiamboris authored and qtxie committed Jun 28, 2020
1 parent 48eb6f7 commit a75be54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/view/backends/windows/gui.reds
Original file line number Diff line number Diff line change
Expand Up @@ -2641,7 +2641,7 @@ OS-to-image: func [
img: image/init-image as red-image! stack/push* as int-ptr! bitmap
]

if screen? [DeleteDC mdc] ;-- we delete it in Draw when print window
DeleteDC mdc
DeleteObject bmp
unless screen? [ReleaseDC hWnd dc]
img
Expand Down

0 comments on commit a75be54

Please sign in to comment.