gstvpxdec: Call vpx_img_free() after log message 88/260088/2 accepted/tizen/unified/20210621.123033 submit/tizen/20210618.084529
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 18 Jun 2021 08:29:51 +0000 (17:29 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 18 Jun 2021 08:37:16 +0000 (17:37 +0900)
[Version] 1.16.2-27
[Issue Type] SVACE (DEREF_AFTER_FREE.EX)

Change-Id: Ia9c3626041e7cb6f49a95562f5ac0eb79bcdedcf
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
ext/vpx/gstvpxdec.c
packaging/gst-plugins-good.spec

index da43225..39cdd3b 100644 (file)
@@ -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;
     }
index 6c9c69c..5e37d38 100644 (file)
@@ -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/