sdp: fix Memory leak in error case

https://bugzilla.gnome.org/show_bug.cgi?id=787059
This commit is contained in:
Satya Prakash Gupta 2017-08-31 13:24:15 +05:30 committed by Tim-Philipp Müller
parent fdd6479f4b
commit d690fbd37d

View file

@ -128,6 +128,7 @@ mikey_add_crypto_sessions (GstRTSPStream * stream, GstMIKEYMessage * msg)
session = gst_rtsp_stream_get_rtpsession (stream);
if (session == NULL) {
GST_ERROR ("unable to get RTP session from stream %p", stream);
gst_object_unref (encoder);
return FALSE;
}