summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-09-29 12:19:35 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-09-29 12:19:35 +0300
commitb9bf5d5ff22446cf00e0a9916772887095662543 (patch)
treef2d3c2e6cc8abe1a77246915c584a5546151af06
parent54c5f1855cfe87189ef2c32d74ffa9b3c40ed66d (diff)
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.
-rw-r--r--gst/gsturi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gsturi.c b/gst/gsturi.c
index 219e6b393e..1a88b5aab9 100644
--- a/gst/gsturi.c
+++ b/gst/gsturi.c
@@ -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);
}