check/memory: Don't leak the custom allocator
authorEdward Hervey <edward@centricular.com>
Mon, 28 Nov 2016 13:00:18 +0000 (14:00 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 28 Nov 2016 13:02:23 +0000 (14:02 +0100)
tests/check/gst/gstmemory.c

index c954a12..7f430ae 100644 (file)
@@ -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);