summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2013-11-22 17:02:02 +0100
committerThomas Haller <thaller@redhat.com>2013-11-22 17:55:57 +0100
commitd2e0e1dacce391ad5110b6aa84f7fe3b524f2bef (patch)
treed416e4c27ed00e96e20020d4b7cb5a6a0c41884d
parent5c1b7d27d10f212f291acdd0154d2e6786ebb74b (diff)
downloadNetworkManager-d2e0e1dacce391ad5110b6aa84f7fe3b524f2bef.tar.gz
core: trivial, remove setting values of struct before g_free()
Setting any variables of the struct before freeing it's memory is of no use. Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/nm-manager-auth.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nm-manager-auth.c b/src/nm-manager-auth.c
index a45bbbb1fd..b5b9fc717b 100644
--- a/src/nm-manager-auth.c
+++ b/src/nm-manager-auth.c
@@ -343,12 +343,8 @@ auth_call_free (AuthCall *call)
{
g_return_if_fail (call != NULL);
- call->disposed = TRUE;
g_free (call->permission);
- call->permission = NULL;
- call->chain = NULL;
g_object_unref (call->cancellable);
- call->cancellable = NULL;
if (call->call_idle_id)
g_source_remove (call->call_idle_id);
memset (call, 0, sizeof (*call));