tests: audio: fix leaks in unit test
authorTim-Philipp Müller <tim@centricular.com>
Wed, 6 Mar 2019 09:22:44 +0000 (09:22 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 6 Mar 2019 10:51:40 +0000 (10:51 +0000)
tests/check/libs/audio.c

index f274a43..d71fffc 100644 (file)
@@ -1396,6 +1396,7 @@ GST_START_TEST (test_audio_buffer_and_audio_meta)
     }
 
     gst_audio_buffer_unmap (&buffer);
+    gst_buffer_unref (buf);
   }
 }