mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
libcamera: free the FrameBufferAllocator buffers before deleting it
The libcamera application developer guide mentions that buffers allocated by the FrameBufferAllocator must be explicitly freed before deleting it.
This commit is contained in:
parent
21c412dc49
commit
ce9f75abaa
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue