Index: atk-bridge/bridge.c
===================================================================
RCS file: /cvs/gnome/at-spi/atk-bridge/bridge.c,v
retrieving revision 1.89
diff -u -r1.89 bridge.c
--- atk-bridge/bridge.c	30 Jan 2006 19:57:37 -0000	1.89
+++ atk-bridge/bridge.c	23 Feb 2006 15:39:15 -0000
@@ -1080,9 +1080,10 @@
     spi_atk_emit_eventv (gobject, detail1, detail2, &any,
 			 "object:%s", name);
 
-  if (sp)
+  if (sp) 
     g_free (sp);
-  if (any._release)
+
+  if (any._release) 
     CORBA_free (any._value);
 
   return TRUE;
@@ -1173,7 +1174,7 @@
     const gchar *s = atk_object_get_name (obj);
     *app = spi_accessible_new_return (atk_get_root (), FALSE, NULL);
     *role = spi_role_from_atk_role (atk_object_get_role (obj));
-    *name = CORBA_string_dup (s ? s : "");
+    *name = s ? s : "";
 }
 
 static void     
Index: registryd/registry.c
===================================================================
RCS file: /cvs/gnome/at-spi/registryd/registry.c,v
retrieving revision 1.70
diff -u -r1.70 registry.c
--- registryd/registry.c	16 Jan 2006 14:16:45 -0000	1.70
+++ registryd/registry.c	23 Feb 2006 15:39:15 -0000
@@ -718,6 +718,8 @@
     }
     CORBA_free ((void *)q_ctx->etype.event_name);
     CORBA_free ((void *)q_ctx->e_out.type);
+    if (q_ctx->e_out.any_data._type != TC_null) 
+	CORBA_free ((void *)q_ctx->e_out.any_data._value);
     g_free (q_ctx);
   }
   registry->is_queueing = FALSE;
@@ -848,6 +850,8 @@
       bonobo_object_release_unref (q_ctx->source, NULL);
       CORBA_free ((void *)q_ctx->etype.event_name);
       CORBA_free ((void *)q_ctx->e_out.type);
+      if (q_ctx->e_out.any_data._type != TC_null) 
+	  CORBA_free ((void *)q_ctx->e_out.any_data._value);
       g_free (q_ctx);
       return TRUE; 
     }
Index: libspi/util.c
===================================================================
RCS file: /cvs/gnome/at-spi/libspi/util.c,v
retrieving revision 1.8
diff -u -r1.8 util.c
--- libspi/util.c	16 Jan 2006 14:16:45 -0000	1.8
+++ libspi/util.c	23 Feb 2006 15:39:16 -0000
@@ -130,7 +130,7 @@
 
   details->any_data._type = TC_null;
   details->any_data._value = NULL;
-  details->any_data._release = FALSE;
+  details->any_data._release = TRUE;
 }
 
 void 
@@ -151,7 +151,7 @@
   
   details->any_data._type = TC_CORBA_Object;
   details->any_data._value = o;
-  details->any_data._release = FALSE;
+  details->any_data._release = TRUE;
 }
 
 void
