From f6cced0689ce569c0e1740a385a8d72690687af8 Mon Sep 17 00:00:00 2001 From: eitani Date: Tue, 23 Oct 2007 05:59:07 +0000 Subject: [PATCH] * accessible.py (_RelationMixin.getTarget): Add a ref() to the retrieved target (bug #489273). git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@958 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- pyatspi/ChangeLog | 5 +++++ pyatspi/accessible.py | 1 + 2 files changed, 6 insertions(+) diff --git a/pyatspi/ChangeLog b/pyatspi/ChangeLog index 2e63af4..730ab56 100644 --- a/pyatspi/ChangeLog +++ b/pyatspi/ChangeLog @@ -1,3 +1,8 @@ +2007-10-22 Eitan Isaacson + + * accessible.py (_RelationMixin.getTarget): Add a ref() to the + retrieved target (bug #489273). + 2007-10-12 Eitan Isaacson * accessible.py: Narrow queried interfaces (bug #478124). Narrow diff --git a/pyatspi/accessible.py b/pyatspi/accessible.py index 89715ca..5aadb9e 100644 --- a/pyatspi/accessible.py +++ b/pyatspi/accessible.py @@ -586,6 +586,7 @@ class _RelationMixin(object): @rtype: Accessibility.Accessible ''' target = self._mix_getTarget(index) + target.ref() return target._narrow(Accessibility.Accessible) # 1. mix the exception handlers into all queryable interfaces -- 2.7.4