diff options
author | David Robillard <d@drobilla.net> | 2014-01-06 19:33:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-01-06 19:33:59 +0000 |
commit | bda15d2d9f5c2d128e2dd35e2a5b102b8374df32 (patch) | |
tree | 98475ce3169280e98ebbce182797761be48f022b /src/World.cpp | |
parent | 01be6fa189d1c36f63b3bfd681299aa30adfea14 (diff) | |
download | ingen-bda15d2d9f5c2d128e2dd35e2a5b102b8374df32.tar.gz ingen-bda15d2d9f5c2d128e2dd35e2a5b102b8374df32.tar.bz2 ingen-bda15d2d9f5c2d128e2dd35e2a5b102b8374df32.zip |
Fix potential segfault on exit.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5289 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<Glib::Module*> Libs; |