projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a662be4
)
outputstream: Fix ref leak
author
Olivier Crête
<olivier.crete@collabora.com>
Mon, 11 Aug 2014 18:27:40 +0000
(14:27 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Mon, 11 Aug 2014 18:32:05 +0000
(14:32 -0400)
agent/outputstream.c
patch
|
blob
|
history
diff --git
a/agent/outputstream.c
b/agent/outputstream.c
index
2062421
..
4de37dc
100644
(file)
--- a/
agent/outputstream.c
+++ b/
agent/outputstream.c
@@
-535,10
+535,10
@@
nice_output_stream_write_nonblocking (GPollableOutputStream *stream,
if (count == 0) {
g_object_unref (agent);
- return 0;
+ n_sent = 0;
+ goto done;
}
-
n_sent = nice_agent_send (agent, priv->stream_id, priv->component_id,
count, buffer);
@@
-546,7
+546,7
@@
nice_output_stream_write_nonblocking (GPollableOutputStream *stream,
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK,
g_strerror (EAGAIN));
-
+ done:
g_object_unref (agent);