gui/themes.cpp: fix memleak in scandir

This commit is contained in:
[CST] Focus
2012-05-04 12:24:26 +04:00
parent 37d5e13d43
commit 86f32ea5a7

View File

@@ -134,6 +134,7 @@ void CThemes::readThemes(CMenuWidget &themes)
oj = new CMenuForwarderNonLocalized((char*)file, true, "", this, file); oj = new CMenuForwarderNonLocalized((char*)file, true, "", this, file);
themes.addItem( oj ); themes.addItem( oj );
} }
free(themelist[count]);
} }
free(themelist); free(themelist);
} }