summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-18 04:27:02 +0000
committerDavid Robillard <d@drobilla.net>2012-03-18 04:27:02 +0000
commitb123caf6dd31fe7d9b22b05ad06832d33feab0e5 (patch)
tree68aa6a74f4e1b75b23a886b70722f93abb531c78 /src
parent92ebfc3a79abb5762a12217e6bac97ef0bdf3ee8 (diff)
downloadlilv-b123caf6dd31fe7d9b22b05ad06832d33feab0e5.tar.gz
lilv-b123caf6dd31fe7d9b22b05ad06832d33feab0e5.tar.bz2
lilv-b123caf6dd31fe7d9b22b05ad06832d33feab0e5.zip
Fix odd crash...
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4076 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.c b/src/lib.c
index bc5a62a..b538c00 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -101,7 +101,7 @@ lilv_lib_close(LilvLib* lib)
dlclose(lib->lib);
ZixTreeIter* i = NULL;
- if (!zix_tree_find(lib->world->libs, lib, &i)) {
+ if (lib->world->libs && !zix_tree_find(lib->world->libs, lib, &i)) {
zix_tree_remove(lib->world->libs, i);
}