mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- attempt to cfix mysterious exit crash
This commit is contained in:
@@ -46,6 +46,10 @@ GraphicComponent::GraphicComponent(std::string containerName, std::string objNam
|
|||||||
editable= true;
|
editable= true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GraphicComponent::clearRegisteredComponents() {
|
||||||
|
GraphicComponent::registeredGraphicComponentList.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void GraphicComponent::registerGraphicComponent(std::string containerName, std::string objName) {
|
void GraphicComponent::registerGraphicComponent(std::string containerName, std::string objName) {
|
||||||
instanceName = objName;
|
instanceName = objName;
|
||||||
registeredGraphicComponentList[containerName][objName] = this;
|
registeredGraphicComponentList[containerName][objName] = this;
|
||||||
|
@@ -57,6 +57,7 @@ public:
|
|||||||
GraphicComponent(std::string containerName="", std::string objName="");
|
GraphicComponent(std::string containerName="", std::string objName="");
|
||||||
virtual ~GraphicComponent(){}
|
virtual ~GraphicComponent(){}
|
||||||
|
|
||||||
|
static void clearRegisteredComponents();
|
||||||
void registerGraphicComponent(std::string containerName, std::string objName);
|
void registerGraphicComponent(std::string containerName, std::string objName);
|
||||||
static GraphicComponent * findRegisteredComponent(std::string containerName, std::string objName);
|
static GraphicComponent * findRegisteredComponent(std::string containerName, std::string objName);
|
||||||
static void applyAllCustomProperties(std::string containerName);
|
static void applyAllCustomProperties(std::string containerName);
|
||||||
|
@@ -32,6 +32,7 @@
|
|||||||
#include "menu_state_masterserver.h"
|
#include "menu_state_masterserver.h"
|
||||||
#include "checksum.h"
|
#include "checksum.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include "sound_renderer.h"
|
||||||
#include "leak_dumper.h"
|
#include "leak_dumper.h"
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
@@ -937,13 +938,14 @@ int glestMain(int argc, char** argv){
|
|||||||
|
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
//SoundRenderer &soundRenderer= SoundRenderer::getInstance();
|
|
||||||
//soundRenderer.stopAllSounds();
|
|
||||||
|
|
||||||
delete mainWindow;
|
delete mainWindow;
|
||||||
|
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
|
GraphicComponent::clearRegisteredComponents();
|
||||||
|
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
//SystemFlags::Close();
|
//SystemFlags::Close();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -89,10 +89,9 @@ SoundRenderer::~SoundRenderer(){
|
|||||||
|
|
||||||
stopAllSounds();
|
stopAllSounds();
|
||||||
|
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
delete soundPlayer;
|
delete soundPlayer;
|
||||||
|
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
|
||||||
|
|
||||||
soundPlayer = NULL;
|
soundPlayer = NULL;
|
||||||
|
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
Reference in New Issue
Block a user