summaryrefslogtreecommitdiff
path: root/src/up-daemon.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-daemon.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-daemon.c')
-rw-r--r--src/up-daemon.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c
index d6420fc..b16438e 100644
--- a/src/up-daemon.c
+++ b/src/up-daemon.c
@@ -547,6 +547,15 @@ out:
}
/**
+ * up_daemon_shutdown:
+ **/
+void
+up_daemon_shutdown (UpDaemon *daemon)
+{
+ up_backend_unplug (daemon->priv->backend);
+}
+
+/**
* up_daemon_get_device_list:
**/
UpDeviceList *