mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
dataurisrc: fix leak as gst_buffer_replace adds its own ref
So unref the buffer after that otherwise it leaks
This commit is contained in:
parent
bdda4bb689
commit
256e843e30
1 changed files with 1 additions and 0 deletions
|
@ -411,6 +411,7 @@ gst_data_uri_src_set_uri (GstURIHandler * handler, const gchar * uri,
|
|||
|
||||
GST_OBJECT_LOCK (src);
|
||||
gst_buffer_replace (&src->buffer, buffer);
|
||||
gst_buffer_unref (buffer);
|
||||
g_free (src->uri);
|
||||
src->uri = g_strdup (orig_uri);
|
||||
GST_OBJECT_UNLOCK (src);
|
||||
|
|
Loading…
Reference in a new issue