summaryrefslogtreecommitdiff
path: root/src/linux/up-device-supply.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-11-18 06:04:08 +0100
committerRichard Hughes <richard@hughsie.com>2014-11-26 11:56:13 +0000
commit4221835fae97f875a23d0ce449e955f2ea488bbc (patch)
treee5c652a48f1f420cfee54ed7e70335b405c39c8c /src/linux/up-device-supply.c
parent1f9c094119296e10d9d7144867b689495c6420bd (diff)
downloadupower-4221835fae97f875a23d0ce449e955f2ea488bbc.tar.gz
daemon: properly disconnect signals, stop memleak
Whenever the daemon is polling on a device, a new signal is connected to the object. This signal was not disconnected when polling stops which resulted in a memory leak. Furthermore, whenever the "warning-level" property is updated, the signal would result in an exponentially raising call count (this happens when the battery percentage changes for example). https://bugs.freedesktop.org/show_bug.cgi?id=82659 Reported-by: Alexander Jesner <alexander@jesner.eu> Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'src/linux/up-device-supply.c')
0 files changed, 0 insertions, 0 deletions