If I register a GObject on the bus, and the object is finalised, it is not unregistered from the bus. Attaching patch to fix this.
Created attachment 2594 [details] [review] Add a weak reference to unregister the object Just realised a possible alternative to the struct would be to store the path in the GObject using g_object_set_(q)data.
Created attachment 2595 [details] [review] Ditto, using quarks I've never really used g_object_set_qdata but it seems to work.
Looks plausible to me, but should check with Colin since this is his stuff and he said he had outstanding changes. I think quarks are usually a pointless optimization but that's just a generalization
Created attachment 2608 [details] [review] Improved patch This patch doens't use quarks directly but lets GObject do the conversion from strings, and in the callback steals the path from the object and frees it directly.
Applied, thanks!
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.