GNOME Bugzilla – Bug 684077
Fix some leaks
Last modified: 2012-09-18 01:31:30 UTC
Here are some patches to fix some leaks.
Created attachment 224394 [details] [review] Close the connection when we are done with it Since it is no longer a shared connection
Created attachment 224395 [details] [review] Don't leak strings
Created attachment 224396 [details] [review] Don't leak message
Created attachment 224397 [details] [review] Don't leak pending calls
Comment on attachment 224394 [details] [review] Close the connection when we are done with it This looks fine once the patch on 684033 is committed. Originally, these connections needed to be shared because libatspi needed not to deadlock when an AT is also an application and is expecting itself, but at-spi2-atk calls libatspi to get the D-Bus connection, so this should not be an issue anymore (and it might have the side-effect of preventing unrelated D-Bus calls from being handled when the application wasn't expecting them).
Comment on attachment 224396 [details] [review] Don't leak message This looks okay. Thanks for the patches.
Comment on attachment 224394 [details] [review] Close the connection when we are done with it Attachment 224394 [details] committed as fa41c5.
Comment on attachment 224395 [details] [review] Don't leak strings Attachment 224395 [details] committed as 1b1fa3.
Comment on attachment 224396 [details] [review] Don't leak message Attachment 224396 [details] committed as 5431eb.
Comment on attachment 224397 [details] [review] Don't leak pending calls Attachment 224397 [details] committed as e10156.
All patches committed. Closing.