uridecodebin: fix potential caps leak

Free the user-configured caps in finalize.
This commit is contained in:
Wim Taymans 2009-05-19 15:27:12 +02:00
parent f11edb626f
commit 8f2f705c21

View file

@ -453,10 +453,10 @@ gst_uri_decode_bin_finalize (GObject * obj)
g_mutex_free (dec->lock);
g_free (dec->uri);
g_free (dec->encoding);
if (dec->factories) {
if (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);
}