mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
libcamera: fixed a small leak and double free
This commit is contained in:
parent
5778de090f
commit
7c05a7f7b4
3 changed files with 10 additions and 11 deletions
|
|
@ -162,7 +162,6 @@ static int impl_clear(struct spa_handle *handle)
|
|||
|
||||
if(this->dev.camera) {
|
||||
deleteLibCamera(this->dev.camera);
|
||||
free(this->dev.camera);
|
||||
this->dev.camera = NULL;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue