summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-04-14 11:11:24 +0200
committerDavid Robillard <d@drobilla.net>2019-04-14 11:18:00 +0200
commitac237a888cbd2ffe8446adc8a51482e603ca3765 (patch)
treed5521f5993fe668e446fac316fa447e12ee3d749 /test
parent1a80c081cc2f3bf38f01512734c0001e4a1d295e (diff)
downloadlilv-ac237a888cbd2ffe8446adc8a51482e603ca3765.tar.gz
lilv-ac237a888cbd2ffe8446adc8a51482e603ca3765.tar.bz2
lilv-ac237a888cbd2ffe8446adc8a51482e603ca3765.zip
Fix Windows cross-library malloc/free errors
Diffstat (limited to 'test')
-rw-r--r--test/lilv_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c
index ca56819..6e1f63c 100644
--- a/test/lilv_test.c
+++ b/test/lilv_test.c
@@ -1640,7 +1640,7 @@ test_state(void)
// Ensure they are equal
TEST_ASSERT(lilv_state_equals(state, from_str));
- free(state1_str);
+ lilv_free(state1_str);
const LilvNode* state_plugin_uri = lilv_state_get_plugin_uri(state);
TEST_ASSERT(lilv_node_equals(state_plugin_uri, plugin_uri));
@@ -1719,7 +1719,7 @@ test_state(void)
lilv_world_load_bundle(world, test_state_bundle);
lilv_world_load_resource(world, test_state_node);
serd_node_free(&state6_uri);
- free(state6_path);
+ lilv_free(state6_path);
LilvState* state6 = lilv_state_new_from_world(world, &map, test_state_node);
TEST_ASSERT(lilv_state_equals(state, state6)); // Round trip accuracy