summaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-19 17:50:01 +0000
committerDavid Robillard <d@drobilla.net>2013-12-19 17:50:01 +0000
commit05576eb9976357bc3870095c0d7e284c655ddb52 (patch)
treee096a9c604deb205f82d613e6065ee2d52ca6436 /src/node.c
parent9a6e476aa52737c328139396098a074804fc6781 (diff)
downloadlilv-05576eb9976357bc3870095c0d7e284c655ddb52.tar.gz
lilv-05576eb9976357bc3870095c0d7e284c655ddb52.tar.bz2
lilv-05576eb9976357bc3870095c0d7e284c655ddb52.zip
Add support for running plugins from Python by Kaspar Emanuel (fix #939 and #940).
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5189 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node.c b/src/node.c
index 7b22873..73dde29 100644
--- a/src/node.c
+++ b/src/node.c
@@ -85,6 +85,11 @@ lilv_node_new(LilvWorld* world, LilvNodeType type, const char* str)
break;
}
+ if (!val->node) {
+ free(val);
+ return NULL;
+ }
+
return val;
}