libcamera: delete the camera on error

Fixes #403
This commit is contained in:
Wim Taymans 2020-11-24 09:25:07 +01:00
parent 2d71d02f40
commit a482e2e6e2

View file

@ -781,6 +781,7 @@ extern "C" {
ret = cm->start();
if (ret) {
deleteLibCamera(camera);
return nullptr;
}