summaryrefslogtreecommitdiff
path: root/libnm/nm-device-wifi.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-11-14 18:47:56 +0100
committerLubomir Rintel <lkundrak@v3.sk>2016-11-14 20:22:23 +0100
commit4b7b518958a1baa805fec65c6b8a145cbc3df17d (patch)
treebfdce68bf95d3ddf7483316abe55c2f6f7262169 /libnm/nm-device-wifi.c
parent446858cf8dd11c777b0d312a5f680d2905d3d09c (diff)
downloadNetworkManager-4b7b518958a1baa805fec65c6b8a145cbc3df17d.tar.gz
libnm: avoid leaking the interface proxies
_nm_object_get_proxy()'s semantics changed with the object-manager branch merge: it now takes a reference.
Diffstat (limited to 'libnm/nm-device-wifi.c')
-rw-r--r--libnm/nm-device-wifi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm/nm-device-wifi.c b/libnm/nm-device-wifi.c
index 5ed23130a8..e2d5917f62 100644
--- a/libnm/nm-device-wifi.c
+++ b/libnm/nm-device-wifi.c
@@ -770,6 +770,8 @@ dispose (GObject *object)
if (priv->aps)
clean_up_aps (NM_DEVICE_WIFI (object), TRUE);
+ g_clear_object (&priv->proxy);
+
G_OBJECT_CLASS (nm_device_wifi_parent_class)->dispose (object);
}