* accessible.py (_AccessibleMixin.getApplication): Added a ref()
authoreitani <eitani@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 29 Jan 2008 02:13:23 +0000 (02:13 +0000)
committereitani <eitani@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 29 Jan 2008 02:13:23 +0000 (02:13 +0000)
which is required when holding a reference to a _narrow()ed
instance (bug #512702).

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

pyatspi/ChangeLog
pyatspi/accessible.py

index deaf5b1..f70bd55 100644 (file)
@@ -1,3 +1,9 @@
+2008-01-28  Eitan Isaacson  <eitan@ascender.com>
+
+       * accessible.py (_AccessibleMixin.getApplication): Added a ref()
+       which is required when holding a reference to a _narrow()ed
+       instance (bug #512702).
+
 2008-01-23  Eitan Isaacson  <eitan@ascender.com>
 
        * registry.py (Registry.pumpQueuedEvents): Added this method for
index 9394857..80a7589 100644 (file)
@@ -630,6 +630,7 @@ class _AccessibleMixin(object):
     try:
       while curr.parent is not None and (not curr.parent == curr):
         curr = curr.parent
+      curr.ref()
       return curr._narrow(Accessibility.Application)
     except:
       return None