diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-11-18 10:12:56 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-11-18 10:30:51 +0100 |
commit | a8366e2a6a3f013d527bbba912eee0e59f08224b (patch) | |
tree | ad8484fed457f7e2be0daa5cea3bfce969419618 /src/up-device.h | |
parent | 20076ab59ee4ff46bf24488d112515c16a54657a (diff) | |
download | upower-daemon-mess.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-device.h')
-rw-r--r-- | src/up-device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/up-device.h b/src/up-device.h index 53415e7..a2d0b7e 100644 --- a/src/up-device.h +++ b/src/up-device.h @@ -75,6 +75,7 @@ UpDevice *up_device_new (void); gboolean up_device_coldplug (UpDevice *device, UpDaemon *daemon, GObject *native); +void up_device_unplug (UpDevice *device); gboolean up_device_register_display_device (UpDevice *device, UpDaemon *daemon); UpDaemon *up_device_get_daemon (UpDevice *device); |