gui/update.cpp: fix memleak

This commit is contained in:
[CST] Focus
2013-11-29 13:42:01 +04:00
parent 98fb57d924
commit a438c0548b

View File

@@ -813,7 +813,7 @@ int CFlashExpert::showMTDSelector(const std::string & actionkey)
enabled = false;
// build jffs2 image from root0
if ((actionkey == "readmtd") && (lx == mtdInfo->findMTDNumberFromName("root0"))) {
CMenuForwarder *mf = new CMenuForwarderNonLocalized("root0", true, NULL, new CFlashExpertSetup(), NULL, CRCInput::convertDigitToKey(shortcut++));
CMenuForwarder *mf = new CMenuDForwarderNonLocalized("root0", true, NULL, new CFlashExpertSetup(), NULL, CRCInput::convertDigitToKey(shortcut++));
mtdselector->addItem(mf);
continue;
}