summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-01-12 14:14:13 +0100
committerThomas Haller <thaller@redhat.com>2016-01-12 14:35:35 +0100
commit0d670be5aa63ca30e2fd2570396da2191a839b73 (patch)
tree651d3dc08e748648c7734a59a35d849a5ed9cdae
parent9f449f604d2cf164fb9aaf433d76027c4edf912a (diff)
downloadNetworkManager-0d670be5aa63ca30e2fd2570396da2191a839b73.tar.gz
fixup! core: add NMArpingManager
The AddressInfo item is stored in priv->addresses, and thus has a smaller lifetime then the NMArpingManager. No need to take an additional reference -- actually it could be bad because it extends the lifetime of the instance.
-rw-r--r--src/devices/nm-arping-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/nm-arping-manager.c b/src/devices/nm-arping-manager.c
index 19bb95c282..5cd2ecb7b1 100644
--- a/src/devices/nm-arping-manager.c
+++ b/src/devices/nm-arping-manager.c
@@ -103,7 +103,7 @@ nm_arping_manager_add_address (NMArpingManager *self, in_addr_t address)
info = g_slice_new0 (AddressInfo);
info->address = address;
- info->manager = g_object_ref (self);
+ info->manager = self;
g_hash_table_insert (priv->addresses, GUINT_TO_POINTER (address), info);
@@ -409,7 +409,6 @@ destroy_address_info (gpointer data)
1000, NULL, NULL);
}
- g_object_unref (info->manager);
g_slice_free (AddressInfo, info);
}