summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-25 09:21:18 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-25 09:54:19 +0100
commit3516890dbe7873fde797361640abc5be05fd0089 (patch)
treeebc320b64d1b624d7198664b3f90efbd9ac40568
parent44b332d4495151a5b9fd0603b4a68874c652318e (diff)
downloadlibnice-3516890dbe7873fde797361640abc5be05fd0089.tar.gz
agent: Fix a minor leak in an error handling path
-rw-r--r--agent/agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/agent.c b/agent/agent.c
index 627d612..e8e9d0d 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -4041,6 +4041,7 @@ nice_agent_recv_messages_blocking_or_nonblocking (NiceAgent *agent,
if (!agent_find_component (agent, stream_id, component_id,
&stream, &component)) {
+ g_clear_error (&child_error);
g_set_error (&child_error, G_IO_ERROR, G_IO_ERROR_BROKEN_PIPE,
"Component removed during call.");