audioencoder: Plug buffer-leak
https://bugzilla.gnome.org/show_bug.cgi?id=773107
This commit is contained in:
parent
409534f242
commit
63c1f4aa33
@ -789,6 +789,8 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
|
||||
ret = GST_FLOW_FLUSHING;
|
||||
else
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
if (buf)
|
||||
gst_buffer_unref (buf);
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user