summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp4
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;