diff --git a/spa/plugins/libcamera/libcamera_wrapper.cpp b/spa/plugins/libcamera/libcamera_wrapper.cpp index 037058af0..4e0a461c8 100644 --- a/spa/plugins/libcamera/libcamera_wrapper.cpp +++ b/spa/plugins/libcamera/libcamera_wrapper.cpp @@ -532,6 +532,7 @@ extern "C" { spa_log_info(this->log_, "Stopping camera ..."); this->cam_->stop(); if(this->allocator_) { + this->allocator_->free(stream); delete this->allocator_; this->allocator_ = nullptr; }