update_menu: don't leak COPKGManager objects

Origin commit data
------------------
Commit: 03a3ced68f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
This commit is contained in:
Stefan Seyfried
2016-01-01 23:09:48 +01:00
parent eeb81d7a52
commit 8dd74a836a

View File

@@ -106,7 +106,7 @@ int CSoftwareUpdate::showSoftwareUpdate()
softUpdate.addItem(mf);
//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);
softUpdate.addItem(mf);
}