From 22dc3b0f2a935d32ed46259954227e838cc18db7 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 15 Dec 2011 21:59:55 +0000 Subject: Added save functionality to settings dialiog, fixed typo resulting in not freeing the resource pointer. svn path=/trunk/netsurf/; revision=13273 --- atari/gui.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'atari/gui.c') diff --git a/atari/gui.c b/atari/gui.c index 8b9d0a9d0..c5b03d62d 100755 --- a/atari/gui.c +++ b/atari/gui.c @@ -88,12 +88,16 @@ short vdih; short rsc_ntree; long next_poll; bool rendering = false; + /* Comandline / Options: */ int cfg_width; int cfg_height; const char * cfg_homepage_url; + +/* path to choices file: */ +char options[PATH_MAX]; extern GEM_PLOTTER plotter; @@ -821,7 +825,7 @@ void gui_quit(void) RsrcXtype( 0, rsc_trindex, rsc_ntree); unbind_global_events(); MenuBar( h_gem_menu , 0 ); - if( h_gem_rsrc == NULL ) { + if( h_gem_rsrc != NULL ) { RsrcXfree(h_gem_rsrc ); } LOG(("Shutting down plotter")); @@ -988,7 +992,6 @@ static void gui_init2(int argc, char** argv) */ int main(int argc, char** argv) { - char options[PATH_MAX]; char messages[PATH_MAX]; setbuf(stderr, NULL); -- cgit v1.2.3