aboutsummaryrefslogtreecommitdiffstats
path: root/tests/map-test.c
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2012-03-23 10:01:23 -0700
committerKristian Høgsberg <krh@bitplanet.net>2012-03-24 14:37:42 -0400
commita0e590a0f3ea87b7616cf197edd240b7b99fcc2e (patch)
treec02a921de509e6f1a0dc9ab3b45dabdbf7dd86c9 /tests/map-test.c
parentconnection-test: Add test case to stress connection buffers (diff)
downloadwayland-a0e590a0f3ea87b7616cf197edd240b7b99fcc2e.tar
wayland-a0e590a0f3ea87b7616cf197edd240b7b99fcc2e.tar.gz
wayland-a0e590a0f3ea87b7616cf197edd240b7b99fcc2e.tar.bz2
wayland-a0e590a0f3ea87b7616cf197edd240b7b99fcc2e.tar.lz
wayland-a0e590a0f3ea87b7616cf197edd240b7b99fcc2e.tar.xz
wayland-a0e590a0f3ea87b7616cf197edd240b7b99fcc2e.tar.zst
wayland-a0e590a0f3ea87b7616cf197edd240b7b99fcc2e.zip
Add simple memory leak check to all tests.
Wrap all tests with a memory balance check to detect potential memory leaks. Fixed a few tests that had memory leaks contained in the tests themselves. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Diffstat (limited to 'tests/map-test.c')
-rw-r--r--tests/map-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/map-test.c b/tests/map-test.c
index 5ef940f..00de337 100644
--- a/tests/map-test.c
+++ b/tests/map-test.c
@@ -90,4 +90,6 @@ TEST(map_remove)
l = wl_map_insert_new(&map, WL_MAP_SERVER_SIDE, &d);
assert(l == WL_SERVER_ID_START + 1);
assert(wl_map_lookup(&map, l) == &d);
+
+ wl_map_release(&map);
}