Don't delete QApplication object, since MUtils will take care of this.

This commit is contained in:
LoRd_MuldeR 2014-11-29 05:12:23 +01:00
parent ac38eb9f8d
commit 751fd85056
2 changed files with 2 additions and 6 deletions

View File

@ -35,7 +35,7 @@
#define VER_LAMEXP_MINOR_LO 1 #define VER_LAMEXP_MINOR_LO 1
#define VER_LAMEXP_TYPE Beta #define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 3 #define VER_LAMEXP_PATCH 3
#define VER_LAMEXP_BUILD 1603 #define VER_LAMEXP_BUILD 1604
#define VER_LAMEXP_CONFG 1558 #define VER_LAMEXP_CONFG 1558
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -160,7 +160,7 @@ const char* LAMEXP_DEFAULT_TRANSLATION = "LameXP_EN.qm";
*/ */
static __forceinline bool lamexp_check_for_debugger(void) static __forceinline bool lamexp_check_for_debugger(void)
{ {
return false; return false; //FIXME !!!
__try __try
{ {
CloseHandle((HANDLE)((DWORD_PTR)-3)); CloseHandle((HANDLE)((DWORD_PTR)-3));
@ -1152,10 +1152,6 @@ extern "C" void _lamexp_global_init_win32(void)
extern "C" void _lamexp_global_free_win32(void) extern "C" void _lamexp_global_free_win32(void)
{ {
//Destroy Qt application object
QApplication *application = dynamic_cast<QApplication*>(QApplication::instance());
MUTILS_DELETE(application);
//Release DWM API //Release DWM API
g_lamexp_dwmapi.dwmIsCompositionEnabled = NULL; g_lamexp_dwmapi.dwmIsCompositionEnabled = NULL;
g_lamexp_dwmapi.dwmExtendFrameIntoClientArea = NULL; g_lamexp_dwmapi.dwmExtendFrameIntoClientArea = NULL;