Camera - Destructor check videoCapture null.

This commit is contained in:
DucDangAnh 2020-06-29 15:06:00 +07:00
parent e30cc8470d
commit 148896423f

View File

@ -28,7 +28,7 @@ namespace AIParkingApplication
~Camera() ~Camera()
{ {
Stop(); Stop();
videoCapture.Dispose(); videoCapture?.Dispose();
} }
public void Start() public void Start()