X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMainLayer.cc;h=6a426fb8f41c89cfba117571a945a554854fffb9;hp=3429f52c5663f932b677407ab6c904a33d875c62;hb=cfe38a72ab859538db6269bc9b97f55e8f1f8709;hpb=9d0add74a28da0a1c24430eee52d41a7d367f857 diff --git a/src/MainLayer.cc b/src/MainLayer.cc index 3429f52..6a426fb 100644 --- a/src/MainLayer.cc +++ b/src/MainLayer.cc @@ -129,13 +129,8 @@ bool MainLayer::handleEvent(const Mf::Event& event) void MainLayer::quit() { -#if NDEBUG - // we don't really need to unwind the stack and shut everything down because - // the operating system will take care of cleaning up - exit(0); -#else + // remove all the layers mEngine->clear(); -#endif }