Added Li Yuan <li.yuan@sun.com> to MAINTAINERS list for atk, gail,
[platform/core/uifw/at-spi2-atk.git] / libspi / util.c
index 6c254ef..5c77669 100644 (file)
@@ -21,6 +21,7 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#include <config.h>
 #include <glib/gmessages.h>
 #include <glib/gslist.h>
 #include <Accessibility.h>
@@ -36,6 +37,8 @@ static GSList *working_list = NULL; /* of Iteration */
 
 static char *spi_atk_bridge_null_string = "";
 
+Accessibility_Role spi_accessible_role_from_atk_role (AtkRole role);
+
 Accessibility_Role
 spi_role_from_atk_role (AtkRole role)
 {
@@ -130,7 +133,7 @@ spi_init_any_nil (CORBA_any *any_details,
 
   details->any_data._type = TC_null;
   details->any_data._value = NULL;
-  details->any_data._release = FALSE;
+  details->any_data._release = TRUE;
 }
 
 void 
@@ -150,8 +153,8 @@ spi_init_any_object (CORBA_any *any_details, Accessibility_Application app,
   details->source_name = CORBA_string_dup (name);
   
   details->any_data._type = TC_CORBA_Object;
-  details->any_data._value = o;
-  details->any_data._release = FALSE;
+  details->any_data._value = ORBit_copy_value (o, TC_CORBA_Object);
+  details->any_data._release = TRUE;
 }
 
 void