summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index 3ae9f7c..7eea802 100644
--- a/src/world.c
+++ b/src/world.c
@@ -41,6 +41,11 @@ lilv_world_new(void)
world->loaded_files = zix_tree_new(
false, lilv_resource_node_cmp, NULL, (ZixDestroyFunc)lilv_node_free);
+#ifdef LILV_NEW_LV2
+ world->libs = zix_tree_new(
+ false, lilv_header_compare_by_uri, NULL, NULL);
+#endif
+
#define NS_DCTERMS "http://purl.org/dc/terms/"
#define NS_DYNMAN "http://lv2plug.in/ns/ext/dynmanifest#"
#define NS_PSET "http://lv2plug.in/ns/ext/presets#"
@@ -131,6 +136,11 @@ lilv_world_free(LilvWorld* world)
zix_tree_free((ZixTree*)world->loaded_files);
world->loaded_files = NULL;
+#ifdef LILV_NEW_LV2
+ zix_tree_free((ZixTree*)world->libs);
+ world->libs = NULL;
+#endif
+
zix_tree_free((ZixTree*)world->plugin_classes);
world->plugin_classes = NULL;