diff options
author | David Robillard <d@drobilla.net> | 2011-03-07 20:12:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-07 20:12:42 +0000 |
commit | 567b4cc4fec495044e2e03d9f4d157fe65f3022a (patch) | |
tree | 173ae1c7103546d4e0ad693210acae669b852e0c /src/plugin.c | |
parent | 690ca2d4559a0cb63c41e7175c26a711100f5bc5 (diff) | |
download | lilv-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/plugin.c')
-rw-r--r-- | src/plugin.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugin.c b/src/plugin.c index f104225..f2d1837 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -375,7 +375,7 @@ slv2_plugin_get_class(SLV2Plugin p) SLV2PluginClass plugin_class = slv2_plugin_classes_get_by_uri( p->world->plugin_classes, class); - slv2_node_free(class_node); + slv2_node_free(p->world, class_node); if (plugin_class) { p->plugin_class = plugin_class; @@ -726,7 +726,7 @@ slv2_plugin_get_author(SLV2Plugin p) doap_maintainer, NULL); - slv2_node_free(doap_maintainer); + slv2_node_free(p->world, doap_maintainer); if (slv2_matches_end(maintainers)) { return NULL; @@ -815,8 +815,8 @@ slv2_plugin_get_uis(SLV2Plugin p) } slv2_match_end(uis); - slv2_node_free(ui_binary_node); - slv2_node_free(ui_ui_node); + slv2_node_free(p->world, ui_binary_node); + slv2_node_free(p->world, ui_ui_node); if (slv2_uis_size(result) > 0) { return result; @@ -879,8 +879,8 @@ slv2_plugin_get_default_ui(SLV2Plugin p, } slv2_match_end(uis); - slv2_node_free(ui_binary_node); - slv2_node_free(ui_ui_node); + slv2_node_free(p->world, ui_binary_node); + slv2_node_free(p->world, ui_ui_node); return (native) ? native : foreign; #else |