From: <el...@us...> - 2012-01-06 16:09:26
|
Revision: 15150 http://alleg.svn.sourceforge.net/alleg/?rev=15150&view=rev Author: elias Date: 2012-01-06 16:09:20 +0000 (Fri, 06 Jan 2012) Log Message: ----------- Fixed some crashes in ex_ogre3d.cpp if Ogre initialization fails. Modified Paths: -------------- allegro/branches/5.1/examples/ex_ogre3d.cpp Modified: allegro/branches/5.1/examples/ex_ogre3d.cpp =================================================================== --- allegro/branches/5.1/examples/ex_ogre3d.cpp 2012-01-05 17:50:12 UTC (rev 15149) +++ allegro/branches/5.1/examples/ex_ogre3d.cpp 2012-01-06 16:09:20 UTC (rev 15150) @@ -54,6 +54,11 @@ createViewports(); createScene(); } + + Application() + { + mRoot = NULL; + } ~Application() { @@ -204,8 +209,8 @@ Example::~Example() { - al_destroy_timer(timer); - al_destroy_event_queue(queue); + if (timer) al_destroy_timer(timer); + if (queue) al_destroy_event_queue(queue); } void Example::createScene() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |