summaryrefslogtreecommitdiffstats
path: root/src/slv2_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-07 20:12:42 +0000
committerDavid Robillard <d@drobilla.net>2011-03-07 20:12:42 +0000
commit567b4cc4fec495044e2e03d9f4d157fe65f3022a (patch)
tree173ae1c7103546d4e0ad693210acae669b852e0c /src/slv2_internal.h
parent690ca2d4559a0cb63c41e7175c26a711100f5bc5 (diff)
downloadlilv-567b4cc4fec495044e2e03d9f4d157fe65f3022a.tar.gz
lilv-567b4cc4fec495044e2e03d9f4d157fe65f3022a.tar.bz2
lilv-567b4cc4fec495044e2e03d9f4d157fe65f3022a.zip
Fix memory leaks.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3052 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/slv2_internal.h')
-rw-r--r--src/slv2_internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slv2_internal.h b/src/slv2_internal.h
index 9f6638c..0752044 100644
--- a/src/slv2_internal.h
+++ b/src/slv2_internal.h
@@ -302,10 +302,11 @@ struct _SLV2Header*
slv2_sequence_get_by_uri(GSequence* seq, SLV2Value uri);
static inline SLV2Node slv2_node_copy(SLV2Node node) {
- return node;
+ return sord_node_copy(node);
}
-static inline void slv2_node_free(SLV2Node node) {
+static inline void slv2_node_free(SLV2World world, SLV2Node node) {
+ sord_node_free(world->world, node);
}