From 858ed5e1f76546af0a9791f86c57b15208b7b33a Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Mon, 25 Jan 2021 18:23:21 +0900 Subject: [PATCH] [v4l2videodecoder] Fix memory leak - Add code to free tizen buffer [Version] 1.16.2-17 [Issue Type] Memory leak Change-Id: I5935bb126564a5224ac946b1eb1f82e8d1c80e1e Signed-off-by: Jeongmo Yang --- packaging/gst-plugins-good.spec | 2 +- sys/v4l2/gstv4l2bufferpool.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/gst-plugins-good.spec b/packaging/gst-plugins-good.spec index 9e7e945..628393d 100644 --- a/packaging/gst-plugins-good.spec +++ b/packaging/gst-plugins-good.spec @@ -3,7 +3,7 @@ Name: gst-plugins-good Version: 1.16.2 -Release: 16 +Release: 17 License: LGPL-2.1+ Summary: GStreamer Streaming-Media Framework Plug-Ins Url: http://gstreamer.freedesktop.org/ diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index f4daa93..a2ad8f9 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -103,6 +103,8 @@ static void gst_v4l2_tizen_buffer_finalize (GstV4l2TizenBuffer *tizen_buffer) g_cond_signal (&pool->buffer_cond); g_mutex_unlock (&pool->buffer_lock); + + g_free(tizen_buffer); } static GstV4l2TizenBuffer *gst_v4l2_tizen_buffer_new (GstBuffer *v4l2_buffer, int index, GstV4l2BufferPool *v4l2_pool) -- 2.7.4