Commit 0e48c939 authored by cutealien's avatar cutealien

Initialize ContextManager pointer and release it's memory at the end.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5208 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 2b919736
......@@ -21,7 +21,7 @@ CIrrDeviceStub::CIrrDeviceStub(const SIrrlichtCreationParameters& params)
: IrrlichtDevice(), VideoDriver(0), GUIEnvironment(0), SceneManager(0),
Timer(0), CursorControl(0), UserReceiver(params.EventReceiver),
Logger(0), Operator(0), Randomizer(0), FileSystem(0),
InputReceivingSceneManager(0), VideoModeList(0),
InputReceivingSceneManager(0), VideoModeList(0), ContextManager(0),
CreationParams(params), Close(false)
{
Timer = new CTimer(params.UsePerformanceTimer);
......@@ -65,6 +65,9 @@ CIrrDeviceStub::~CIrrDeviceStub()
if (VideoDriver)
VideoDriver->drop();
if (ContextManager)
ContextManager->drop();
if ( FileSystem )
FileSystem->drop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment