From 51fed80a4cf63457dae27cf2cc37b84b88c235b8 Mon Sep 17 00:00:00 2001 From: Julian Scheel Date: Wed, 3 Jun 2015 09:50:31 +0200 Subject: [PATCH] mmal/deinterlace: Release picture if unable to process When an input picture can not be handled due to lack of resources we need to free it to avoid a picture leak. Signed-off-by: Julian Scheel Signed-off-by: Jean-Baptiste Kempf --- modules/hw/mmal/deinterlace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/hw/mmal/deinterlace.c b/modules/hw/mmal/deinterlace.c index c8b6484d51..f54b9c841c 100644 --- a/modules/hw/mmal/deinterlace.c +++ b/modules/hw/mmal/deinterlace.c @@ -452,6 +452,7 @@ static picture_t *deinterlace(filter_t *filter, picture_t *picture) buffer = mmal_queue_timedwait(sys->input_pool->queue, 2); if (!buffer) { + picture_Release(picture); msg_Err(filter, "Failed to retrieve buffer header for input picture"); goto out; } -- 2.11.4.GIT