win-capture: Fix memory leak in dc-capture.c
parent
cbd35d41f5
commit
7eb46d50b7
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue