From 170f77a66940013f5c45e7907d5e56aaabde56a6 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 28 Nov 2016 14:00:18 +0100 Subject: [PATCH] check/memory: Don't leak the custom allocator --- tests/check/gst/gstmemory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/check/gst/gstmemory.c b/tests/check/gst/gstmemory.c index c954a12d39..7f430aeb4c 100644 --- a/tests/check/gst/gstmemory.c +++ b/tests/check/gst/gstmemory.c @@ -725,6 +725,7 @@ GST_START_TEST (test_no_error_and_no_warning_on_map_failure) fail_if (info.maxsize != 0); gst_memory_unref (mem); + gst_object_unref (alloc); /* Restore previous logging state. */ gst_debug_set_default_threshold (prev_debug_threshold);