From bda15d2d9f5c2d128e2dd35e2a5b102b8374df32 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 6 Jan 2014 19:33:59 +0000 Subject: Fix potential segfault on exit. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5289 a436a847-0d15-0410-975c-d299462d15a1 --- src/World.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/World.cpp b/src/World.cpp index 43388c9c..bb837783 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -155,7 +155,9 @@ public: ~Impl() { - engine->quit(); + if (engine) { + engine->quit(); + } // Delete module objects but save pointers to libraries typedef std::list Libs; -- cgit v1.2.1