Index: gst/gstregistry.c
===================================================================
RCS file: /cvs/gstreamer/gstreamer/gst/gstregistry.c,v
retrieving revision 1.54
diff -u -d -p -r1.54 gstregistry.c
--- gst/gstregistry.c	2 Dec 2005 12:34:47 -0000	1.54
+++ gst/gstregistry.c	22 Dec 2005 15:59:47 -0000
@@ -214,6 +214,8 @@ gst_registry_get_default (void)
 {
   if (!_gst_registry_default) {
     _gst_registry_default = g_object_new (GST_TYPE_REGISTRY, NULL);
+    gst_object_ref (GST_OBJECT (_gst_registry_default));
+    gst_object_sink (GST_OBJECT (_gst_registry_default));
   }
   return _gst_registry_default;
 }
