alsamidisrc: unref buffer_list before early return
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 12 Apr 2018 20:23:50 +0000 (22:23 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Thu, 12 Apr 2018 23:07:21 +0000 (01:07 +0200)
ext/alsa/gstalsamidisrc.c

index ef1d186..72bbcf7 100644 (file)
@@ -459,6 +459,7 @@ poll:
   if (ret <= 0) {
     if (ret < 0 && errno == EBUSY) {
       GST_INFO_OBJECT (alsamidisrc, "flushing");
+      gst_buffer_list_unref (buffer_list);
       return GST_FLOW_FLUSHING;
     }
     GST_ERROR_OBJECT (alsamidisrc, "ERROR in poll: %s", strerror (errno));