From 884d4131f636d637274f077abc3f0387307af820 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 21 Oct 2019 22:15:42 +0200 Subject: Fix memory error in Python World.unload_resource() This is pretty ridiculous behaviour on behalf of the GC, if you ask me. --- bindings/python/lilv.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bindings') diff --git a/bindings/python/lilv.py b/bindings/python/lilv.py index bfff997..cc4101e 100644 --- a/bindings/python/lilv.py +++ b/bindings/python/lilv.py @@ -1257,7 +1257,9 @@ class World(Structure): This unloads all data loaded by a previous call to load_resource() with the given `resource`. """ - return c.world_unload_resource(self.world, _as_uri(resource).node) + uri = _as_uri(resource) + ret = c.world_unload_resource(self.world, uri.node) + return ret def get_plugin_class(self): """Get the parent of all other plugin classes, lv2:Plugin.""" -- cgit v1.2.1