jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=19df2cd34fa53cc5629bfe5f019967172b1aea23

commit 19df2cd34fa53cc5629bfe5f019967172b1aea23
Author: Uma Devika <[email protected]>
Date:   Mon Jul 3 19:44:48 2017 +0900

    Emotion: freed allocated string.
    
    Summary:
    GStreamer API gst_caps_to_string returns allocated memory which needs to be 
freed with g_free() after use.
    
    @fix
    
    Signed-off-by: Uma Devika <[email protected]>
    
    Reviewers: cedric, tasn, singh.amitesh, raster, jpeg
    
    Subscribers: tanwar.umesh07, yashu21985, cedric, jpeg
    
    Differential Revision: https://phab.enlightenment.org/D4996
---
 src/modules/emotion/gstreamer/emotion_gstreamer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/emotion/gstreamer/emotion_gstreamer.c 
b/src/modules/emotion/gstreamer/emotion_gstreamer.c
index a599481a16..caa844e856 100644
--- a/src/modules/emotion/gstreamer/emotion_gstreamer.c
+++ b/src/modules/emotion/gstreamer/emotion_gstreamer.c
@@ -1789,7 +1789,7 @@ 
_emotion_gstreamer_video_pipeline_parse(Emotion_Gstreamer_Video *ev,
         GstStructure *structure;
         GstQuery     *query;
         const GValue *val;
-        gchar        *str;
+        gchar        *str = NULL;
         
         gdouble length_time = 0.0;
         gint width;
@@ -1851,6 +1851,7 @@ 
_emotion_gstreamer_video_pipeline_parse(Emotion_Gstreamer_Video *ev,
         gst_query_unref(query);
      unref_caps_v:
         gst_caps_unref(caps);
+        g_free(str);
      unref_pad_v:
         gst_object_unref(pad);
      }

-- 


Reply via email to