Various memory leaks found by valgrind/code review.

Many thanks to Jan for the much neater fast_demo.cc patch.
This commit is contained in:
Steve Herrell
2010-11-10 08:50:54 -05:00
parent 6cce14161f
commit 6d4c50255a
6 changed files with 21 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ bool MultiLangMgr::load (Glib::ustring fname, MultiLangMgr* fb) {
char* buffer = new char[2048];
while ((buffer = fgets (buffer, 2048, f))) {
while (fgets (buffer, 2048, f) != 0) {
// find separator
int seppos = 0;
while (buffer[seppos]!=0 && buffer[seppos]!=';')