From a482e2e6e2bbe65ff0bf14b80bb864a101e4ba24 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 24 Nov 2020 09:25:07 +0100 Subject: [PATCH] libcamera: delete the camera on error Fixes #403 --- spa/plugins/libcamera/libcamera_wrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/spa/plugins/libcamera/libcamera_wrapper.cpp b/spa/plugins/libcamera/libcamera_wrapper.cpp index b786424de..8d7ab3950 100644 --- a/spa/plugins/libcamera/libcamera_wrapper.cpp +++ b/spa/plugins/libcamera/libcamera_wrapper.cpp @@ -781,6 +781,7 @@ extern "C" { ret = cm->start(); if (ret) { + deleteLibCamera(camera); return nullptr; }