mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
mfc: Fix leak of input/output buffer storage in the MFC decoder library
This commit is contained in:
parent
c6d9191abe
commit
6e05f1ba12
1 changed files with 5 additions and 0 deletions
|
@ -472,6 +472,11 @@ void mfc_dec_destroy(struct mfc_dec_context *ctx)
|
||||||
munmap(ctx->output_buffer[i].plane[j].data,
|
munmap(ctx->output_buffer[i].plane[j].data,
|
||||||
ctx->output_buffer[i].plane[j].length);
|
ctx->output_buffer[i].plane[j].length);
|
||||||
}
|
}
|
||||||
|
if (ctx->input_buffer)
|
||||||
|
free (ctx->input_buffer);
|
||||||
|
if (ctx->output_buffer)
|
||||||
|
free (ctx->output_buffer);
|
||||||
|
|
||||||
close(ctx->fd);
|
close(ctx->fd);
|
||||||
pthread_mutex_lock(&mutex);
|
pthread_mutex_lock(&mutex);
|
||||||
mfc_in_use = 0;
|
mfc_in_use = 0;
|
||||||
|
|
Loading…
Reference in a new issue