diff options
author | David Robillard <d@drobilla.net> | 2024-11-20 16:14:04 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:11:32 -0500 |
commit | 724aab7a868ed0200afbeecf056e53b5ea16b23d (patch) | |
tree | 1f18f1d9185465b253c4de21112e05aeb6739e2f /src/lv2_evbuf.c | |
parent | 9ff22388ddcb5ae22aed51302889098cb246a47c (diff) | |
download | jalv-724aab7a868ed0200afbeecf056e53b5ea16b23d.tar.gz jalv-724aab7a868ed0200afbeecf056e53b5ea16b23d.tar.bz2 jalv-724aab7a868ed0200afbeecf056e53b5ea16b23d.zip |
Simplify port buffer allocation
Diffstat (limited to 'src/lv2_evbuf.c')
-rw-r--r-- | src/lv2_evbuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lv2_evbuf.c b/src/lv2_evbuf.c index 054e2a1..cdb5dc2 100644 --- a/src/lv2_evbuf.c +++ b/src/lv2_evbuf.c @@ -50,7 +50,9 @@ lv2_evbuf_new(uint32_t capacity, uint32_t atom_Chunk, uint32_t atom_Sequence) void lv2_evbuf_free(LV2_Evbuf* evbuf) { - free(evbuf); + if (evbuf) { + free(evbuf); + } } void |