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
This commit is contained in:
Uma Devika 2017-07-03 19:44:48 +09:00 committed by Jean-Philippe Andre
parent 8b8a43759c
commit 19df2cd34f
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}