From 7e4dcbd10277b46cb1b56f82ea3c859b6361af38 Mon Sep 17 00:00:00 2001 From: parente Date: Tue, 8 May 2007 15:54:47 +0000 Subject: [PATCH] * event.py: Fixed bug #435947, Fix reference count error git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@918 e2bd861d-eb25-0410-b326-f6ed22b6b98c --- pyatspi/ChangeLog | 8 +++++++- pyatspi/event.py | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pyatspi/ChangeLog b/pyatspi/ChangeLog index 5cf6c0e..d80ca8c 100644 --- a/pyatspi/ChangeLog +++ b/pyatspi/ChangeLog @@ -1,3 +1,9 @@ +2007-05-08 Peter Parente + + Patch from Eitan Isaacson + * event.py: + Fixed bug #435947, Fix reference count error + 2007-05-04 Peter Parente * accessible.py: @@ -21,7 +27,7 @@ 2007-05-03 Peter Parente - Patch from Eitan. + Patch from Eitan Isaacson * registry.py: Fixed bug #435284, Wrong params to deregister keystrokes diff --git a/pyatspi/event.py b/pyatspi/event.py index af6aa28..9b9295f 100644 --- a/pyatspi/event.py +++ b/pyatspi/event.py @@ -160,6 +160,11 @@ class Event(object): self.host_application = details.host_application self.source_name = details.source_name self.source_role = details.source_role + try: + # if we received an accessible, be sure to increment the ref count + self.any_data.ref() + except AttributeError: + pass def __str__(self): ''' -- 2.7.4