devicemonitor: Stop using g_clear_pointer()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 30 Jun 2014 08:59:18 +0000 (08:59 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 30 Jun 2014 09:17:44 +0000 (11:17 +0200)
We dont't want to depend on GLib 2.34 for now.

gst/gstdevicemonitor.c

index e193661..d6b7f25 100644 (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);