From 148896423fa11f14c1302c49ecaf1c18ae39078f Mon Sep 17 00:00:00 2001 From: DucDangAnh Date: Mon, 29 Jun 2020 15:06:00 +0700 Subject: [PATCH] Camera - Destructor check videoCapture null. --- AIParkingApplication/Camera.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AIParkingApplication/Camera.cs b/AIParkingApplication/Camera.cs index bef745d..c357559 100644 --- a/AIParkingApplication/Camera.cs +++ b/AIParkingApplication/Camera.cs @@ -28,7 +28,7 @@ namespace AIParkingApplication ~Camera() { Stop(); - videoCapture.Dispose(); + videoCapture?.Dispose(); } public void Start()