uri: Fix memory leak in gst_uri_join()

The merged path segments are a deep-copied list and we need to free the
contained strings too instead of just the list nodes themselves.
This commit is contained in:
Sebastian Dröge 2014-09-29 12:19:35 +03:00
parent 54c5f1855c
commit b9bf5d5ff2

View file

@ -1748,7 +1748,7 @@ gst_uri_join (GstUri * base_uri, GstUri * ref_uri)
else {
GList *mrgd = _merge (base_uri->path, ref_uri->path);
t->path = _remove_dot_segments (mrgd);
g_list_free (mrgd);
g_list_free_full (mrgd, g_free);
}
t->query = _gst_uri_copy_query_table (ref_uri->query);
}