Browse Source

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

wang.shaohui 3 years ago
parent
commit
7eb46d50b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/win-capture/dc-capture.c

+ 1 - 1
plugins/win-capture/dc-capture.c

@@ -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);
 			}
 		}
 	}