update_menu: don't leak COPKGManager objects

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
Stefan Seyfried
2016-01-04 21:01:57 +01:00
committed by svenhoefer
parent 8578218c38
commit 70e1891b36

View File

@@ -106,7 +106,7 @@ int CSoftwareUpdate::showSoftwareUpdate()
softUpdate.addItem(mf); softUpdate.addItem(mf);
//firmware update via opkg //firmware update via opkg
mf = new CMenuForwarder(LOCALE_OPKG_TITLE, COPKGManager::hasOpkgSupport(), NULL, new COPKGManager()); mf = new CMenuDForwarder(LOCALE_OPKG_TITLE, COPKGManager::hasOpkgSupport(), NULL, new COPKGManager());
mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, LOCALE_MENU_HINT_OPKG); mf->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, LOCALE_MENU_HINT_OPKG);
softUpdate.addItem(mf); softUpdate.addItem(mf);
} }