summaryrefslogtreecommitdiff
path: root/src/up-main.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-11-18 10:12:56 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-11-18 10:30:51 +0100
commita8366e2a6a3f013d527bbba912eee0e59f08224b (patch)
treead8484fed457f7e2be0daa5cea3bfce969419618 /src/up-main.c
parent20076ab59ee4ff46bf24488d112515c16a54657a (diff)
downloadupower-a8366e2a6a3f013d527bbba912eee0e59f08224b.tar.gz
[WIP] attempt to fix refcount leak of UpDaemondaemon-mess
Debug in GDB with: break up-main.c:260 # just after daemon = up_daemon_new () p &daemon->parent.ref_count break *(guint *)ADDR_PRINTED_ABOVE commands bt c end c Refcount of daemon was over 100 at the end...
Diffstat (limited to 'src/up-main.c')
-rw-r--r--src/up-main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/up-main.c b/src/up-main.c
index c27cfb4..cb835b7 100644
--- a/src/up-main.c
+++ b/src/up-main.c
@@ -278,6 +278,7 @@ main (gint argc, gchar **argv)
/* wait for input or timeout */
g_main_loop_run (loop);
+ up_daemon_shutdown (daemon);
retval = 0;
out:
if (kbd_backlight != NULL)