summaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index e2456dd..e94bcd8 100644
--- a/src/world.c
+++ b/src/world.c
@@ -100,6 +100,10 @@ LILV_API
void
lilv_world_free(LilvWorld* world)
{
+ if (!world) {
+ return NULL;
+ }
+
lilv_plugin_class_free(world->lv2_plugin_class);
world->lv2_plugin_class = NULL;