summaryrefslogtreecommitdiff
path: root/src/up-main.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-11-18 06:04:08 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-11-18 10:30:40 +0100
commit20076ab59ee4ff46bf24488d112515c16a54657a (patch)
treee5c652a48f1f420cfee54ed7e70335b405c39c8c /src/up-main.c
parent7e9df0c95b739cf99f188f5b27548dd0ad6a3af5 (diff)
downloadupower-20076ab59ee4ff46bf24488d112515c16a54657a.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/up-main.c')
0 files changed, 0 insertions, 0 deletions