diff options
-rw-r--r-- | gst-libs/gst/audio/gstaudioencoder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstaudioencoder.c b/gst-libs/gst/audio/gstaudioencoder.c index 546c8223e..24da7dd47 100644 --- a/gst-libs/gst/audio/gstaudioencoder.c +++ b/gst-libs/gst/audio/gstaudioencoder.c @@ -787,6 +787,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; } } |