Fix SDL device compilation. VideoDriver is now always dropped after Scenemanager and FileSystem after those two to prevent memory-leaks in some situations.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4724 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
3401273272
commit
0adb750092
|
@ -754,7 +754,7 @@ void CIrrDeviceSDL::maximizeWindow()
|
|||
}
|
||||
|
||||
//! Get the position of this window on screen
|
||||
core::position2di getWindowPosition()
|
||||
core::position2di CIrrDeviceSDL::getWindowPosition()
|
||||
{
|
||||
return core::position2di(-1, -1);
|
||||
}
|
||||
|
|
|
@ -55,16 +55,18 @@ CIrrDeviceStub::CIrrDeviceStub(const SIrrlichtCreationParameters& params)
|
|||
CIrrDeviceStub::~CIrrDeviceStub()
|
||||
{
|
||||
VideoModeList->drop();
|
||||
FileSystem->drop();
|
||||
|
||||
if (GUIEnvironment)
|
||||
GUIEnvironment->drop();
|
||||
|
||||
if (SceneManager)
|
||||
SceneManager->drop();
|
||||
|
||||
if (VideoDriver)
|
||||
VideoDriver->drop();
|
||||
|
||||
if (SceneManager)
|
||||
SceneManager->drop();
|
||||
if ( FileSystem )
|
||||
FileSystem->drop();
|
||||
|
||||
if (InputReceivingSceneManager)
|
||||
InputReceivingSceneManager->drop();
|
||||
|
|
Loading…
Reference in New Issue