# HG changeset patch # User Herman Bloggs # Date 1065734142 0 # Node ID 42ef0c41cefbcb310820c20ea21453a665145b0d # Parent fab036092ca5d245a0e628ec5dc39ed9efe35b4d [gaim-migrate @ 7781] Remove win32 opt_gdebug code and fix critical error which caused console to appear committer: Tailor Script diff -r fab036092ca5 -r 42ef0c41cefb src/main.c --- a/src/main.c Thu Oct 09 20:23:28 2003 +0000 +++ b/src/main.c Thu Oct 09 21:15:42 2003 +0000 @@ -83,9 +83,6 @@ char *opt_away_arg = NULL; char *opt_rcfile_arg = NULL; int opt_debug = 0; -#ifdef _WIN32 -int opt_gdebug = 0; -#endif #if HAVE_SIGNAL_H /* @@ -770,7 +767,7 @@ #ifndef _WIN32 "adhu:f:vns:", #else - "adghu:f:vn", + "adhu:f:vn", #endif long_options, NULL)) != -1) { switch (opt) { @@ -799,11 +796,6 @@ case 'n': /* don't autologin */ opt_nologin = 1; break; -#ifdef _WIN32 - case 'g': /* debug GTK and GLIB */ - opt_gdebug = 1; - break; -#endif case '?': default: show_usage(1, argv[0]); diff -r fab036092ca5 -r 42ef0c41cefb src/win32/win32dep.c --- a/src/win32/win32dep.c Thu Oct 09 20:23:28 2003 +0000 +++ b/src/win32/win32dep.c Thu Oct 09 21:15:42 2003 +0000 @@ -481,8 +481,8 @@ } g_free(new_home); g_free(old_home); - g_dir_close(dir_old); - g_dir_close(dir_new); + if(dir_old) g_dir_close(dir_old); + if(dir_new) g_dir_close(dir_new); } } else {