Changeset - r21685:1bc003bd6510
[Not reviewed]
master
0 1 0
rubidium - 10 years ago 2014-09-16 17:14:07
rubidium@openttd.org
(svn r26828) -Fix: memory leak when passing -c multiple times
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -667,7 +667,7 @@ int openttd_main(int argc, char *argv[])
 
			goto exit_noshutdown;
 
		}
 
		case 'G': scanner->generation_seed = atoi(mgo.opt); break;
 
		case 'c': _config_file = stredup(mgo.opt); break;
 
		case 'c': free(_config_file); _config_file = stredup(mgo.opt); break;
 
		case 'x': scanner->save_config = false; break;
 
		case 'h':
 
			i = -2; // Force printing of help.
0 comments (0 inline, 0 general)