From: Sangchul Lee Date: Fri, 18 Jun 2021 08:29:51 +0000 (+0900) Subject: gstvpxdec: Call vpx_img_free() after log message X-Git-Tag: accepted/tizen/unified/20220217.153506~2^2~10^2~9^2~14^2~3^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4d691c46129af712fb3e7df15ebf06b25cfcb77;p=platform%2Fupstream%2Fgstreamer.git gstvpxdec: Call vpx_img_free() after log message [Version] 1.16.2-27 [Issue Type] SVACE (DEREF_AFTER_FREE.EX) Change-Id: Ia9c3626041e7cb6f49a95562f5ac0eb79bcdedcf Signed-off-by: Sangchul Lee --- diff --git a/ext/vpx/gstvpxdec.c b/ext/vpx/gstvpxdec.c index da43225..39cdd3b 100644 --- a/ext/vpx/gstvpxdec.c +++ b/ext/vpx/gstvpxdec.c @@ -703,10 +703,15 @@ gst_vpx_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame) img = vpx_codec_get_frame (&dec->decoder, &iter); if (img) { if (vpxclass->get_frame_format (dec, img, &fmt) == FALSE) { +#ifndef __TIZEN__ vpx_img_free (img); +#endif GST_ELEMENT_ERROR (decoder, LIBRARY, ENCODE, ("Failed to decode frame"), ("Unsupported color format %d", img->fmt)); +#ifdef __TIZEN__ + vpx_img_free (img); +#endif gst_video_codec_frame_unref (frame); return GST_FLOW_ERROR; } diff --git a/packaging/gst-plugins-good.spec b/packaging/gst-plugins-good.spec index 6c9c69c..5e37d38 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: 26 +Release: 27 License: LGPL-2.1+ Summary: GStreamer Streaming-Media Framework Plug-Ins Url: http://gstreamer.freedesktop.org/