Commit 6056277b authored by Youness Alaoui's avatar Youness Alaoui

Free used variables

parent 6bb6d6a0
...@@ -1757,6 +1757,10 @@ nice_agent_dispose (GObject *object) ...@@ -1757,6 +1757,10 @@ nice_agent_dispose (GObject *object)
agent->stun_server_ip = NULL; agent->stun_server_ip = NULL;
g_free (agent->turn_server_ip); g_free (agent->turn_server_ip);
agent->turn_server_ip = NULL; agent->turn_server_ip = NULL;
g_free (agent->turn_username);
agent->turn_username = NULL;
g_free (agent->turn_password);
agent->turn_password = NULL;
nice_rng_free (agent->rng); nice_rng_free (agent->rng);
agent->rng = NULL; agent->rng = NULL;
...@@ -1764,6 +1768,11 @@ nice_agent_dispose (GObject *object) ...@@ -1764,6 +1768,11 @@ nice_agent_dispose (GObject *object)
if (G_OBJECT_CLASS (nice_agent_parent_class)->dispose) if (G_OBJECT_CLASS (nice_agent_parent_class)->dispose)
G_OBJECT_CLASS (nice_agent_parent_class)->dispose (object); G_OBJECT_CLASS (nice_agent_parent_class)->dispose (object);
nice_udp_socket_factory_close (&agent->udp_socket_factory);
nice_udp_socket_factory_close (&agent->relay_socket_factory);
g_static_rec_mutex_free (&agent->mutex); g_static_rec_mutex_free (&agent->mutex);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment