rtspreal: Fix some memory leaks in an error path

CID 1212165.
This commit is contained in:
Sebastian Dröge 2014-05-16 12:21:06 +02:00
parent a665347345
commit 9953165336

View file

@ -595,6 +595,10 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp,
/* ERRORS */
strange_opaque_data:
{
g_string_free (rules, TRUE);
g_hash_table_destroy (vars);
g_free (data);
GST_ELEMENT_ERROR (ctx, RESOURCE, WRITE, ("Strange opaque data."), (NULL));
return FALSE;
}