mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Ensure that we clean up the root browser window
svn path=/trunk/netsurf/; revision=10492
This commit is contained in:
parent
542610c779
commit
e692750d5f
@ -428,14 +428,6 @@ static void gui_init(int argc, char** argv)
|
||||
|
||||
}
|
||||
|
||||
static void gui_init2(int argc, char** argv)
|
||||
{
|
||||
struct browser_window *bw;
|
||||
|
||||
LOG(("calling browser_window_create"));
|
||||
bw = browser_window_create(feurl, 0, 0, true, false);
|
||||
}
|
||||
|
||||
/** Entry point from OS.
|
||||
*
|
||||
* /param argc The number of arguments in the string vector.
|
||||
@ -444,6 +436,7 @@ static void gui_init2(int argc, char** argv)
|
||||
*/
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
struct browser_window *bw;
|
||||
char options[PATH_MAX];
|
||||
char messages[PATH_MAX];
|
||||
|
||||
@ -457,10 +450,13 @@ int main(int argc, char** argv)
|
||||
|
||||
gui_init(argc, argv);
|
||||
|
||||
gui_init2(argc, argv);
|
||||
LOG(("calling browser_window_create"));
|
||||
bw = browser_window_create(feurl, 0, 0, true, false);
|
||||
|
||||
netsurf_main_loop();
|
||||
|
||||
browser_window_destroy(bw);
|
||||
|
||||
netsurf_exit();
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user