mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
typefind: don't leak uri string
This commit is contained in:
parent
f10c36de20
commit
2b0b3923e8
1 changed files with 2 additions and 0 deletions
|
@ -650,6 +650,7 @@ gst_type_find_get_extension (GstTypeFindElement * typefind, GstPad * pad)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (typefind, "found extension %s", result);
|
GST_DEBUG_OBJECT (typefind, "found extension %s", result);
|
||||||
gst_query_unref (query);
|
gst_query_unref (query);
|
||||||
|
g_free (uri);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
@ -670,6 +671,7 @@ no_extension:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (typefind, "could not find uri extension in %s", uri);
|
GST_WARNING_OBJECT (typefind, "could not find uri extension in %s", uri);
|
||||||
gst_query_unref (query);
|
gst_query_unref (query);
|
||||||
|
g_free (uri);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue