summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-25 13:54:41 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-25 13:56:24 +0100
commit8d14a6234ad35f8084bf3eb0751a2f304cdacd4e (patch)
tree3f7a80e9de34b2f2a39b7444c1e739ed7b3faa97 /agent
parent0b0ae4d86e8b090acf909eb3e0df05e98361086c (diff)
downloadlibnice-8d14a6234ad35f8084bf3eb0751a2f304cdacd4e.tar.gz
agent: Close Streams before freeing them
This could result in leaking the stream’s un-closed state otherwise, in any case where a NiceAgent is finalised without nice_agent_remove_stream() being called on all its streams.
Diffstat (limited to 'agent')
-rw-r--r--agent/agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/agent.c b/agent/agent.c
index e8e9d0d..2fd74b8 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -4578,6 +4578,7 @@ nice_agent_dispose (GObject *object)
{
Stream *s = i->data;
+ stream_close (s);
stream_free (s);
}