diff options
author | David Robillard <d@drobilla.net> | 2012-03-18 04:26:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-18 04:26:26 +0000 |
commit | 2bb1e7c375464c8603278923775fbbc3ded9a959 (patch) | |
tree | 71586d6fb41d8eea4dfe6fc13397f2494870da84 | |
parent | e5527056292f4b56c8b208ab8843ac0329ac4c95 (diff) | |
download | jalv-2bb1e7c375464c8603278923775fbbc3ded9a959.tar.gz jalv-2bb1e7c375464c8603278923775fbbc3ded9a959.tar.bz2 jalv-2bb1e7c375464c8603278923775fbbc3ded9a959.zip |
Fix crash on plugins with no UI.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4075 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/jalv.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -541,6 +541,10 @@ jack_session_cb(jack_session_event_t* event, void* arg) bool jalv_ui_is_resizable(Jalv* jalv) { + if (!jalv->ui) { + return false; + } + const LilvNode* s = lilv_ui_get_uri(jalv->ui); LilvNode* p = lilv_new_uri(jalv->world, LV2_CORE__requiredFeature); LilvNode* o = lilv_new_uri(jalv->world, NS_UI "fixedSize"); |