+2000-01-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * src/lyx_main.C (easyParse): output an error and exit if an
+ incorrect command line option has been given.
+
+ * src/spellchecker.C (ispell_check_word): document a memory leak.
+
+ * src/bufferlist.C (write): fix mismatched allocation/deletion,
+ where a "struct utimbuf" is allocated with "new" and deleted with
+ "delete[]".
+
2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* config/lyxinclude.m4 (LYX_FUNC_PUTENV_ARGTYPE): fix the macro,
lyxerr << "LyX was not able to make "
"backupcopy. Beware." << endl;
}
- delete[] times;
+ delete times;
}
}
bool gui = true;
for(int i = 1; i < *argc; ++i) {
string arg = argv[i];
+
// Check for -dbg int
if (arg == "-dbg") {
if (i + 1 < *argc) {
"ps...] after ")
<< arg << _(" switch!") << endl;
}
+
+ else if((!arg.empty()) && (arg[0] == '-')) {
+ lyxerr << "Illegal option `" << arg << "'" <<endl;
+ exit(1);
+ }
}
return gui;
}
{
result->flag = ISP_MISSED;
result->str = buf;
+ // nb is leaked! where should it be freed? I have to
+ // admit I do not understand the intent of the code :(
+ // (JMarc)
char * nb = new char[result->str.length() + 1];
result->str.copy(nb, result->str.length());
nb[result->str.length()]= '\0';