GNOME Bugzilla – Bug 660079
reference leak
Last modified: 2011-09-26 09:07:54 UTC
My reading of engine_get_primary_device is that it returns a new reference. The sole caller in handle_method_call_main seems to leak that reference.
Agreed, and we also ref the devices_array unnecessarily. commit 09c582d9e31580fbfced001811006617dfad5ef9 Author: Richard Hughes <richard@hughsie.com> Date: Mon Sep 26 10:06:13 2011 +0100 power: Fix two small reference leaks when using the D-Bus interface Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=660079 I'll push this to 3-2 after the hard code freeze.