* accessible.py (_RelationMixin.getTarget): Add a ref() to the
[platform/core/uifw/at-spi2-atk.git] / pyatspi / accessible.py
index 89715ca..5aadb9e 100644 (file)
@@ -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