diff --git a/src/video/camerasource.cpp b/src/video/camerasource.cpp index a37856bd8..ae7d61946 100644 --- a/src/video/camerasource.cpp +++ b/src/video/camerasource.cpp @@ -131,10 +131,8 @@ CameraSource& CameraSource::getInstance() void CameraSource::destroyInstance() { - if (instance) { - delete instance; - instance = nullptr; - } + delete instance; + instance = nullptr; } /**