summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-22 02:53:12 +0000
committerDavid Robillard <d@drobilla.net>2012-08-22 02:53:12 +0000
commit9e3868818cd63498c5fec058febbb8008f04d9e0 (patch)
tree5fc85dc242416dcedc3bf69e19b0b06872f1e511
parent08b62fe47b81117c17cbd7b08210b0a91d104126 (diff)
downloadingen-9e3868818cd63498c5fec058febbb8008f04d9e0.tar.gz
ingen-9e3868818cd63498c5fec058febbb8008f04d9e0.tar.bz2
ingen-9e3868818cd63498c5fec058febbb8008f04d9e0.zip
Fix occasional crash in event handling.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4739 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/server/PostProcessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index 783d1f35..a0ff0f9c 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -81,7 +81,7 @@ PostProcessor::process()
ev->post_process();
delete ev;
- if (ev == tail || next->time() >= end_time) {
+ if (ev == tail || next && next->time() >= end_time) {
// Reached end, update _head
_head = next;
break;