GNOME Bugzilla – Bug 672249
gdbusproxy leaks asyncresult in an error case instead of completing
Last modified: 2012-03-19 16:41:44 UTC
GDBusProxy leaks the async result in the case of doing an async call on a proxy that was created for a well-known name with the "no autostart" flag when that name doesn't already exist.
Created attachment 209944 [details] [review] GDBusProxy: report an error instead of leaking it GDBusProxy sets an error on a GSimpleAsyncResult and then returns without dispatching the result for completion (and leaks the result in the process). Fix that. Also add a testcase. Unfortunately, adding the testcase uncovered bug #672248. We can work around that by reordering the tests.
Comment on attachment 209944 [details] [review] GDBusProxy: report an error instead of leaking it Looks good to me. Thanks!
Attachment 209944 [details] pushed as c3125ee - GDBusProxy: report an error instead of leaking it