After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 512702 - Add a ref() to getApplication
Add a ref() to getApplication
Status: RESOLVED FIXED
Product: pyatspi2
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Li Yuan
Li Yuan
Depends on:
Blocks:
 
 
Reported: 2008-01-29 02:04 UTC by Eitan Isaacson
Modified: 2019-03-27 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix (409 bytes, patch)
2008-01-29 02:11 UTC, Eitan Isaacson
accepted-commit_now Details | Review

Description Eitan Isaacson 2008-01-29 02:04:43 UTC
When a _narrow()ed accessible is returned, the original gets GCed and subsequently unreffed. So we need to add a ref() to the accessible before we return it in getApplication.
Comment 1 Eitan Isaacson 2008-01-29 02:11:45 UTC
Created attachment 103928 [details] [review]
Fix

This should fix that. Committing to trunk.
Comment 2 Eitan Isaacson 2008-01-29 02:14:29 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.