summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2019-04-03 14:13:49 -0400
committerTim-Philipp Müller <tim@centricular.com>2019-05-06 23:43:07 +0200
commit438aebfa2312dea22666407e1c2714ae17507a59 (patch)
tree7ca4d32477ee92e385dff782a5deeb0a54777691
parentc8ef081d315d0942eac31480c2db44618e7492d2 (diff)
downloadgstreamer-plugins-good-438aebfa2312dea22666407e1c2714ae17507a59.tar.gz
shout2: Fix leak on error in start
-rw-r--r--ext/shout2/gstshout2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c
index 3d3f652dd..9e2d60f4d 100644
--- 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)));
+ shout_free (sink->conn);
+ sink->conn = NULL;
return FALSE;
}
}