From 9e3868818cd63498c5fec058febbb8008f04d9e0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 22 Aug 2012 02:53:12 +0000 Subject: Fix occasional crash in event handling. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4739 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PostProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.1