main.cc reverted, solving issue #440
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user