projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
464ada3
)
shout2: Fix leak on error in start
author
Nicolas Dufresne
<nicolas.dufresne@collabora.com>
Wed, 3 Apr 2019 18:13:49 +0000
(14:13 -0400)
committer
Nicolas Dufresne
<nicolas@ndufresne.ca>
Fri, 5 Apr 2019 14:53:09 +0000
(14:53 +0000)
ext/shout2/gstshout2.c
patch
|
blob
|
history
diff --git
a/ext/shout2/gstshout2.c
b/ext/shout2/gstshout2.c
index
3d3f652
..
9e2d60f
100644
(file)
--- a/
ext/shout2/gstshout2.c
+++ b/
ext/shout2/gstshout2.c
@@
-522,6
+522,8
@@
set_failed:
{
GST_ELEMENT_ERROR (sink, LIBRARY, SETTINGS, (NULL),
("Error setting %s: %s", cur_prop, shout_get_error (sink->conn)));
{
GST_ELEMENT_ERROR (sink, LIBRARY, SETTINGS, (NULL),
("Error setting %s: %s", cur_prop, shout_get_error (sink->conn)));
+ shout_free (sink->conn);
+ sink->conn = NULL;
return FALSE;
}
}
return FALSE;
}
}