win-capture: Fix memory leak in dc-capture.c

master
wang.shaohui 2022-08-09 12:37:38 +08:00 committed by Jim
parent cbd35d41f5
commit 7eb46d50b7
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ void dc_capture_init(struct dc_capture *capture, int x, int y, uint32_t width,
capture->old_bmp = SelectObject(capture->hdc,
capture->bmp);
} else {
DeleteDC(capture->hdc);
DeleteDC(hdc);
}
}
}