2007-07-09 Li Yuan <li.yuan@sun.com>
authorliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Mon, 9 Jul 2007 10:59:41 +0000 (10:59 +0000)
committerliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Mon, 9 Jul 2007 10:59:41 +0000 (10:59 +0000)
        * libspi/accessible.c: (impl_accessibility_accessible_get_state):
        Bug #446277. Control the ref_count to 1, so Orca can unref the
        state_set and avoid the memory leak.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@936 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
libspi/accessible.c

index 44fe9ec..7d09f10 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-09  Li Yuan <li.yuan@sun.com>
+
+       * libspi/accessible.c: (impl_accessibility_accessible_get_state):
+       Bug #446277. Control the ref_count to 1, so Orca can unref the
+       state_set and avoid the memory leak.
+
 2007-06-26  Li Yuan <li.yuan@sun.com>
 
        * atk-bridge/Makefile.am:
index ab9f5bc..671ec66 100644 (file)
@@ -338,6 +338,9 @@ impl_accessibility_accessible_get_state (PortableServer_Servant servant,
                                  BONOBO_OBJREF(set),
                                  ev);
 
+  g_object_unref (atk_set);
+  Bonobo_Unknown_unref (retval, ev);
+
   return retval;
 }