From 3b333151e8d9b245d10d28b8f5c427e3d33a1c66 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Jun 2011 05:48:48 +0000 Subject: Explicitly document free functions as safe to call on NULL. Fix ticket #709. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3377 a436a847-0d15-0410-975c-d299462d15a1 --- src/world.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/world.c') 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; -- cgit v1.2.1