diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2020-04-20 20:00:47 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2020-04-20 20:03:09 +0200 |
commit | 0aaff7e62875c94d8d5c4512eb305fe73bf3e0ae (patch) | |
tree | 9d90de8d5d0ffacc95ad03d2c641e34de9137313 /src/gclue-client-info.c | |
parent | eb65a2c0567716d6147e39268aa8d0be45a6876a (diff) | |
download | geoclue-0aaff7e62875c94d8d5c4512eb305fe73bf3e0ae.tar.gz |
Fix two memory leaks.
The current code is leaking a DBUS proxy and a TimeThreshold object on *each*
client disconnect. Since some clients like to connect/disconnect every few seconds
or minute, this leaks like crazy after a few hours.
Diffstat (limited to 'src/gclue-client-info.c')
-rw-r--r-- | src/gclue-client-info.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gclue-client-info.c b/src/gclue-client-info.c index 4aab453..d609b34 100644 --- a/src/gclue-client-info.c +++ b/src/gclue-client-info.c @@ -74,6 +74,7 @@ gclue_client_info_finalize (GObject *object) priv->watch_id = 0; } + g_clear_object (&priv->dbus_proxy); g_clear_pointer (&priv->bus_name, g_free); g_clear_pointer (&priv->xdg_id, g_free); g_clear_object (&priv->connection); |