summaryrefslogtreecommitdiff
path: root/src/modules/emotion/gstreamer/emotion_gstreamer.c
diff options
context:
space:
mode:
authorUma Devika <u.bodapati@samsung.com>2017-07-03 19:44:48 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-07-04 11:33:11 +0900
commit19df2cd34fa53cc5629bfe5f019967172b1aea23 (patch)
treed559f38574a9eff56f888d91eb55556ac521dd82 /src/modules/emotion/gstreamer/emotion_gstreamer.c
parent8b8a43759ca2325703749d33263e3c736ec9c122 (diff)
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 <u.bodapati@samsung.com> Reviewers: cedric, tasn, singh.amitesh, raster, jpeg Subscribers: tanwar.umesh07, yashu21985, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4996
Diffstat (limited to 'src/modules/emotion/gstreamer/emotion_gstreamer.c')
-rw-r--r--src/modules/emotion/gstreamer/emotion_gstreamer.c3
1 files changed, 2 insertions, 1 deletions
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,
1789 GstStructure *structure; 1789 GstStructure *structure;
1790 GstQuery *query; 1790 GstQuery *query;
1791 const GValue *val; 1791 const GValue *val;
1792 gchar *str; 1792 gchar *str = NULL;
1793 1793
1794 gdouble length_time = 0.0; 1794 gdouble length_time = 0.0;
1795 gint width; 1795 gint width;
@@ -1851,6 +1851,7 @@ _emotion_gstreamer_video_pipeline_parse(Emotion_Gstreamer_Video *ev,
1851 gst_query_unref(query); 1851 gst_query_unref(query);
1852 unref_caps_v: 1852 unref_caps_v:
1853 gst_caps_unref(caps); 1853 gst_caps_unref(caps);
1854 g_free(str);
1854 unref_pad_v: 1855 unref_pad_v:
1855 gst_object_unref(pad); 1856 gst_object_unref(pad);
1856 } 1857 }