summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-31 05:23:36 +0000
committerDavid Robillard <d@drobilla.net>2011-01-31 05:23:36 +0000
commitd81b0c688ddb864fe6ebfee818dc1af76c7bc97b (patch)
tree009d3ac998a34eb63cb5de5632a84d402276a713 /test
parentd5ad97feaff9bcb767d579c71451440a71b1464a (diff)
downloadlilv-d81b0c688ddb864fe6ebfee818dc1af76c7bc97b.tar.gz
lilv-d81b0c688ddb864fe6ebfee818dc1af76c7bc97b.tar.bz2
lilv-d81b0c688ddb864fe6ebfee818dc1af76c7bc97b.zip
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2887 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r--test/slv2_test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/slv2_test.c b/test/slv2_test.c
index aafb3dd..9b0bd07 100644
--- a/test/slv2_test.c
+++ b/test/slv2_test.c
@@ -765,7 +765,9 @@ test_port()
TEST_ASSERT(slv2_port_is_a(plug, p, in_class));
TEST_ASSERT(!slv2_port_is_a(plug, p, audio_class));
- TEST_ASSERT(slv2_values_size(slv2_port_get_properties(plug, p)) == 1);
+ SLV2Values port_properties = slv2_port_get_properties(plug, p);
+ TEST_ASSERT(slv2_values_size(port_properties) == 1);
+ slv2_values_free(port_properties);
TEST_ASSERT(!strcmp(slv2_value_as_string(slv2_port_get_symbol(plug, p)), "foo"));
SLV2Value name = slv2_port_get_name(plug, p);
@@ -819,12 +821,12 @@ test_port()
SLV2Values names = slv2_port_get_value(plug, p, name_p);
TEST_ASSERT(slv2_values_size(names) == 2);
TEST_ASSERT(!strcmp(slv2_value_as_string(slv2_values_get_at(names, 0)),
- "bar"));
+ "bar"));
slv2_values_free(names);
names = slv2_port_get_value(plug, ep, name_p);
TEST_ASSERT(slv2_values_size(names) == 1);
TEST_ASSERT(!strcmp(slv2_value_as_string(slv2_values_get_at(names, 0)),
- "Event Input"));
+ "Event Input"));
slv2_values_free(names);
slv2_value_free(name_p);