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
GstStructure *structure;
GstQuery *query;
const GValue *val;
- gchar *str;
+ gchar *str = NULL;
gdouble length_time = 0.0;
gint width;
gst_query_unref(query);
unref_caps_v:
gst_caps_unref(caps);
+ g_free(str);
unref_pad_v:
gst_object_unref(pad);
}