From 393f9ffa3284e170d9144d3cd5c81a85ae3dfa3d Mon Sep 17 00:00:00 2001 From: liyuan Date: Mon, 9 Jul 2007 10:59:41 +0000 Subject: [PATCH] 2007-07-09 Li Yuan * 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 | 6 ++++++ libspi/accessible.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 44fe9ec..7d09f10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-07-09 Li Yuan + + * 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 * atk-bridge/Makefile.am: diff --git a/libspi/accessible.c b/libspi/accessible.c index ab9f5bc..671ec66 100644 --- a/libspi/accessible.c +++ b/libspi/accessible.c @@ -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; } -- 2.7.4