libcamera: fixed a small leak and double free

This commit is contained in:
raghu447 2020-06-15 12:01:19 +05:30
parent 5778de090f
commit 7c05a7f7b4
3 changed files with 10 additions and 11 deletions

View file

@ -900,7 +900,6 @@ static int impl_clear(struct spa_handle *handle)
if(port->dev.camera) {
deleteLibCamera(port->dev.camera);
free(port->dev.camera);
port->dev.camera = NULL;
}
if(this->have_source) {