summaryrefslogtreecommitdiffstats
path: root/src/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/plugin.c b/src/plugin.c
index 3f27a6b..0743cd8 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -100,16 +100,7 @@ lilv_plugin_free(LilvPlugin* plugin)
{
#ifdef LILV_DYN_MANIFEST
if (plugin->dynmanifest && --plugin->dynmanifest->refs == 0) {
- typedef int (*CloseFunc)(LV2_Dyn_Manifest_Handle);
- CloseFunc close_func = (CloseFunc)lilv_dlfunc(plugin->dynmanifest->lib,
- "lv2_dyn_manifest_close");
- if (close_func) {
- close_func(plugin->dynmanifest->handle);
- }
-
- dlclose(plugin->dynmanifest->lib);
- lilv_node_free(plugin->dynmanifest->bundle);
- free(plugin->dynmanifest);
+ lilv_dynmanifest_free(plugin->dynmanifest);
}
#endif