diff options
6 files changed, 19 insertions, 0 deletions
diff --git a/test/failed_lib_descriptor.lv2/test_failed_lib_descriptor.c b/test/failed_lib_descriptor.lv2/test_failed_lib_descriptor.c index 2bdc999..b82eb0a 100644 --- a/test/failed_lib_descriptor.lv2/test_failed_lib_descriptor.c +++ b/test/failed_lib_descriptor.lv2/test_failed_lib_descriptor.c @@ -28,6 +28,7 @@ main(int argc, char** argv) lilv_world_load_bundle(world, bundle_uri); free(abs_bundle); serd_node_free(&bundle); + lilv_node_free(bundle_uri); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); @@ -37,6 +38,7 @@ main(int argc, char** argv) LilvInstance* instance = lilv_plugin_instantiate(plugin, 48000.0, NULL); TEST_ASSERT(!instance); + lilv_node_free(plugin_uri); lilv_world_free(world); return 0; diff --git a/test/lib_descriptor.lv2/test_lib_descriptor.c b/test/lib_descriptor.lv2/test_lib_descriptor.c index 3409ef2..ff14763 100644 --- a/test/lib_descriptor.lv2/test_lib_descriptor.c +++ b/test/lib_descriptor.lv2/test_lib_descriptor.c @@ -28,6 +28,7 @@ main(int argc, char** argv) lilv_world_load_bundle(world, bundle_uri); free(abs_bundle); serd_node_free(&bundle); + lilv_node_free(bundle_uri); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); @@ -36,15 +37,21 @@ main(int argc, char** argv) LilvInstance* instance = lilv_plugin_instantiate(plugin, 48000.0, NULL); TEST_ASSERT(instance); + lilv_instance_free(instance); LilvNode* eg_blob = lilv_new_uri(world, "http://example.org/blob"); LilvNode* blob = lilv_world_get(world, plugin_uri, eg_blob, NULL); TEST_ASSERT(lilv_node_is_literal(blob)); + lilv_node_free(blob); + lilv_node_free(eg_blob); LilvNode* eg_junk = lilv_new_uri(world, "http://example.org/junk"); LilvNode* junk = lilv_world_get(world, plugin_uri, eg_junk, NULL); TEST_ASSERT(lilv_node_is_literal(junk)); + lilv_node_free(junk); + lilv_node_free(eg_junk); + lilv_node_free(plugin_uri); lilv_world_free(world); return 0; diff --git a/test/missing_descriptor.lv2/test_missing_descriptor.c b/test/missing_descriptor.lv2/test_missing_descriptor.c index e0af49e..49909e1 100644 --- a/test/missing_descriptor.lv2/test_missing_descriptor.c +++ b/test/missing_descriptor.lv2/test_missing_descriptor.c @@ -28,6 +28,7 @@ main(int argc, char** argv) lilv_world_load_bundle(world, bundle_uri); free(abs_bundle); serd_node_free(&bundle); + lilv_node_free(bundle_uri); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); @@ -37,6 +38,7 @@ main(int argc, char** argv) LilvInstance* instance = lilv_plugin_instantiate(plugin, 48000.0, NULL); TEST_ASSERT(!instance); + lilv_node_free(plugin_uri); lilv_world_free(world); return 0; diff --git a/test/missing_name.lv2/test_missing_name.c b/test/missing_name.lv2/test_missing_name.c index 9237ae2..960eec0 100644 --- a/test/missing_name.lv2/test_missing_name.c +++ b/test/missing_name.lv2/test_missing_name.c @@ -28,6 +28,7 @@ main(int argc, char** argv) lilv_world_load_bundle(world, bundle_uri); free(abs_bundle); serd_node_free(&bundle); + lilv_node_free(bundle_uri); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); @@ -36,7 +37,9 @@ main(int argc, char** argv) LilvInstance* instance = lilv_plugin_instantiate(plugin, 48000.0, NULL); TEST_ASSERT(instance); + lilv_instance_free(instance); + lilv_node_free(plugin_uri); lilv_world_free(world); return 0; diff --git a/test/missing_plugin.lv2/test_missing_plugin.c b/test/missing_plugin.lv2/test_missing_plugin.c index 01f00cd..bfc695b 100644 --- a/test/missing_plugin.lv2/test_missing_plugin.c +++ b/test/missing_plugin.lv2/test_missing_plugin.c @@ -28,6 +28,7 @@ main(int argc, char** argv) lilv_world_load_bundle(world, bundle_uri); free(abs_bundle); serd_node_free(&bundle); + lilv_node_free(bundle_uri); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); @@ -37,6 +38,7 @@ main(int argc, char** argv) LilvInstance* instance = lilv_plugin_instantiate(plugin, 48000.0, NULL); TEST_ASSERT(!instance); + lilv_node_free(plugin_uri); lilv_world_free(world); return 0; diff --git a/test/missing_port_name.lv2/test_missing_port_name.c b/test/missing_port_name.lv2/test_missing_port_name.c index 0f96918..c000247 100644 --- a/test/missing_port_name.lv2/test_missing_port_name.c +++ b/test/missing_port_name.lv2/test_missing_port_name.c @@ -28,6 +28,7 @@ main(int argc, char** argv) lilv_world_load_bundle(world, bundle_uri); free(abs_bundle); serd_node_free(&bundle); + lilv_node_free(bundle_uri); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); @@ -38,7 +39,9 @@ main(int argc, char** argv) TEST_ASSERT(port); LilvNode* name = lilv_port_get_name(plugin, port); TEST_ASSERT(!name); + lilv_node_free(name); + lilv_node_free(plugin_uri); lilv_world_free(world); return 0; |