main.cc reverted, solving issue #440

This commit is contained in:
Hombre
2010-12-27 16:13:34 +01:00
parent 6152b5d9dd
commit cbf6b6717d

View File

@@ -57,7 +57,7 @@ int main(int argc, char **argv)
std::string argv0_, argv1_; std::string argv0_, argv1_;
#ifdef WIN32 #ifdef WIN32
char *exname = new char[512]; char exname[512];
GetModuleFileName (NULL, exname, 512); GetModuleFileName (NULL, exname, 512);
argv0_ = exname; argv0_ = exname;
// get the path where the rawtherapee is stored // get the path where the rawtherapee is stored
@@ -124,8 +124,6 @@ int main(int argc, char **argv)
m.run(*rtWindow); m.run(*rtWindow);
gdk_threads_leave (); gdk_threads_leave ();
delete rtWindow; delete rtWindow;
rtengine::cleanup();
delete [] exname;
return 0; return 0;
} }