diff options
author | David Robillard <d@drobilla.net> | 2015-10-08 20:46:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-10-08 20:46:35 +0000 |
commit | 0389fb6ee1f05177f5cfd4cb260885cf0ced6722 (patch) | |
tree | 73ae761e8e1eab3a01dcc0abdb2ff9fe2fa3e5b1 | |
parent | 6b1d7ac4318374c1aaac7db0b60678eb61c601dd (diff) | |
download | lilv-0389fb6ee1f05177f5cfd4cb260885cf0ced6722.tar.gz lilv-0389fb6ee1f05177f5cfd4cb260885cf0ced6722.tar.bz2 lilv-0389fb6ee1f05177f5cfd4cb260885cf0ced6722.zip |
Fix memory leaks in test suite
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5753 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | test/lilv_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c index 3e2a23a..c82fd79 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -608,6 +608,7 @@ test_plugin(void) LilvNode* unknown_uri_val = lilv_new_uri(world, "http://example.org/unknown"); TEST_ASSERT(!lilv_nodes_contains(data_uris, unknown_uri_val)); + lilv_node_free(unknown_uri_val); free(manifest_uri); free(data_uri); @@ -1389,6 +1390,7 @@ test_ui(void) TEST_ASSERT(lilv_node_equals(expected_uri, ui_binary_uri)); free(ui_binary_uri_str); + lilv_node_free(unknown_ui_class_uri); lilv_node_free(ui_class_uri); lilv_node_free(ui_uri); lilv_node_free(ui2_uri); @@ -1918,6 +1920,9 @@ test_world(void) matches = lilv_world_find_nodes(world, NULL, uri, NULL); TEST_ASSERT(!matches); + lilv_node_free(uri); + lilv_node_free(num); + lilv_world_unload_bundle(world, NULL); return 1; |