aboutsummaryrefslogtreecommitdiffstats
path: root/src/lv2_evbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lv2_evbuf.c')
-rw-r--r--src/lv2_evbuf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lv2_evbuf.c b/src/lv2_evbuf.c
index 355cac2..cdb5dc2 100644
--- a/src/lv2_evbuf.c
+++ b/src/lv2_evbuf.c
@@ -4,8 +4,8 @@
#include "lv2_evbuf.h"
#include "jalv_config.h"
-#include "lv2/atom/atom.h"
-#include "lv2/atom/util.h"
+#include <lv2/atom/atom.h>
+#include <lv2/atom/util.h>
#include <assert.h>
#include <stdlib.h>
@@ -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