mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
1e15808563
commit
bf10d33b9b
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue