mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-29 02:03:03 +08:00
win-capture: Fix memory leak in dc-capture.c
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user