summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-24 18:56:42 +0000
committerDavid Robillard <d@drobilla.net>2011-05-24 18:56:42 +0000
commitdbd8fdc5bb5f50ff030259d1ea5a382325658e43 (patch)
tree4bfa5a470315d98af7ccac6cbb4dfc03be8a3043 /src/world.c
parent876c5e305254158827ca5f70d7ec138af3f09ff0 (diff)
downloadlilv-dbd8fdc5bb5f50ff030259d1ea5a382325658e43.tar.gz
lilv-dbd8fdc5bb5f50ff030259d1ea5a382325658e43.tar.bz2
lilv-dbd8fdc5bb5f50ff030259d1ea5a382325658e43.zip
Re-use the SordNode of blank nodes when copying.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3309 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/world.c b/src/world.c
index 12baf15..e2456dd 100644
--- a/src/world.c
+++ b/src/world.c
@@ -353,7 +353,7 @@ lilv_world_add_plugin(LilvWorld* world,
}
// Create LilvPlugin
- LilvNode* bundle_uri = lilv_node_new_from_node(world, bundle_node);
+ LilvNode* bundle_uri = lilv_node_new_from_node(world, bundle_node);
LilvPlugin* plugin = lilv_plugin_new(world, plugin_uri, bundle_uri);
// Add manifest as plugin data file (as if it were rdfs:seeAlso)
@@ -514,6 +514,7 @@ lilv_world_load_bundle(LilvWorld* world, LilvNode* bundle_uri)
serd_reader_add_blank_prefix(reader, lilv_world_blank_node_prefix(world));
SerdStatus st = serd_reader_read_file(reader, manifest_uri.buf);
+ serd_reader_free(reader);
serd_env_free(env);
if (st) {
LILV_ERRORF("Error reading %s\n", manifest_uri.buf);