summaryrefslogtreecommitdiff
path: root/agent/agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/agent.c')
-rw-r--r--agent/agent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/agent/agent.c b/agent/agent.c
index fa405b4..ffe5104 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -915,15 +915,15 @@ static void priv_destroy_component_tcp (Component *component)
g_source_unref (component->tcp_clock);
component->tcp_clock = NULL;
}
- if (component->tcp_data != NULL) {
- g_slice_free (TcpUserData, component->tcp_data);
- component->tcp_data = NULL;
- }
if (component->tcp) {
pseudo_tcp_socket_close (component->tcp, TRUE);
g_object_unref (component->tcp);
component->tcp = NULL;
}
+ if (component->tcp_data != NULL) {
+ g_slice_free (TcpUserData, component->tcp_data);
+ component->tcp_data = NULL;
+ }
}
static void priv_pseudo_tcp_error (NiceAgent *agent, Stream *stream,