* event.py: Fixed bug #435947, Fix reference count error
authorparente <parente@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 8 May 2007 15:54:47 +0000 (15:54 +0000)
committerparente <parente@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Tue, 8 May 2007 15:54:47 +0000 (15:54 +0000)
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@918 e2bd861d-eb25-0410-b326-f6ed22b6b98c

pyatspi/ChangeLog
pyatspi/event.py

index 5cf6c0e..d80ca8c 100644 (file)
@@ -1,3 +1,9 @@
+2007-05-08  Peter Parente  <parente@cs.unc.edu>
+
+       Patch from Eitan Isaacson
+       * event.py: 
+       Fixed bug #435947, Fix reference count error
+
 2007-05-04  Peter Parente  <parente@cs.unc.edu>
 
        * accessible.py: 
@@ -21,7 +27,7 @@
 
 2007-05-03  Peter Parente  <parente@cs.unc.edu>
 
-       Patch from Eitan.
+       Patch from Eitan Isaacson
        * registry.py: 
        Fixed bug #435284, Wrong params to deregister keystrokes
 
index af6aa28..9b9295f 100644 (file)
@@ -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):
     '''