Summary: | Extra g_object_unref shouldn't happen for ATK objects without extra references in spi_object_return_referenc | ||
---|---|---|---|
Product: | at-spi2 | Reporter: | Mario Sanchez Prada <msanchez> |
Component: | atk | Assignee: | Rob Taylor <rob.taylor> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Patch proposal
Patch proposal (a better one) |
Description
Mario Sanchez Prada
2010-06-22 00:11:56 UTC
Created attachment 36414 [details] [review] Patch proposal Implemented patch proposal as suggested by Mike Gorse: adding an extra parameter to decide whether to unref in spi_object_return_reference() Committed. Thanks for the patch. Reopening after thinking that perhaps the implementation of the attached patch was not the best one: I think that, instead of adding an extra parameter to know when to unref the AtkObject inside spi_object_return_reference(), it would be better just to completely remove the g_object_unref() from that function and only do it, when needed, after calling it, that is, from the callers. I should have noticed before sending the former patch, sorry for the annoyance. I'm attaching a new patch right now... Created attachment 36433 [details] [review] Patch proposal (a better one) Here is the new patch, which applies cleanly right on top of the last one, that is, on top of current master :-) Committed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.