mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
uridecodebin: fix potential caps leak
Free the user-configured caps in finalize.
This commit is contained in:
parent
f11edb626f
commit
8f2f705c21
1 changed files with 3 additions and 3 deletions
|
@ -453,10 +453,10 @@ gst_uri_decode_bin_finalize (GObject * obj)
|
||||||
g_mutex_free (dec->lock);
|
g_mutex_free (dec->lock);
|
||||||
g_free (dec->uri);
|
g_free (dec->uri);
|
||||||
g_free (dec->encoding);
|
g_free (dec->encoding);
|
||||||
if (dec->factories) {
|
if (dec->factories)
|
||||||
g_value_array_free (dec->factories);
|
g_value_array_free (dec->factories);
|
||||||
dec->factories = NULL;
|
if (dec->caps)
|
||||||
}
|
gst_caps_unref (dec->caps);
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (obj);
|
G_OBJECT_CLASS (parent_class)->finalize (obj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue