pulsesink: Free format_info in query_getcaps

If we can not create probe stream in query_getcaps function, it will appear
memory leakage from format info.
The following patch prevent memory leakage in pulsesink.

https://bugzilla.gnome.org/show_bug.cgi?id=743178
This commit is contained in:
Jimmy Ohn 2015-01-20 00:32:00 +00:00 committed by Thiago Santos
parent 1e15808563
commit bf10d33b9b

View file

@ -2164,13 +2164,14 @@ gst_pulsesink_query_getcaps (GstPulseSink * psink, GstCaps * filter)
pbuf->probe_stream = gst_pulsesink_create_probe_stream (psink, pbuf,
format);
pa_format_info_free (format);
if (!pbuf->probe_stream) {
GST_WARNING_OBJECT (psink, "Could not create probe stream");
goto unlock;
}
pa_format_info_free (format);
stream = pbuf->probe_stream;
}