devicemonitor: Stop using g_clear_pointer()

We dont't want to depend on GLib 2.34 for now.
This commit is contained in:
Guillaume Desmottes 2014-06-30 08:59:18 +00:00 committed by Sebastian Dröge
parent 434bb14995
commit 688108431a

View file

@ -232,7 +232,10 @@ gst_device_monitor_dispose (GObject * object)
self->priv->providers = NULL;
}
g_clear_pointer (&self->priv->filters, (GDestroyNotify) g_ptr_array_unref);
if (self->priv->filters) {
g_ptr_array_unref (self->priv->filters);
self->priv->filters = NULL;
}
gst_object_replace ((GstObject **) & self->priv->bus, NULL);