mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
update: remove unnecessary initialization on the heap
Origin commit data
------------------
Branch: ni/coolstream
Commit: 81bfacf992
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-03-19 (Sun, 19 Mar 2023)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -420,8 +420,8 @@ bool CFlashUpdate::checkVersion4Update()
|
||||
|
||||
hide();
|
||||
|
||||
versionInfo = new CFlashVersionInfo(newVersion); // Memory leak: versionInfo
|
||||
sprintf(msg, g_Locale->getText(LOCALE_FLASHUPDATE_MSGBOX), versionInfo->getType(true), versionInfo->getVersionString(), versionInfo->getDate(), versionInfo->getTime());
|
||||
CFlashVersionInfo versionInfo(newVersion);
|
||||
sprintf(msg, g_Locale->getText(LOCALE_FLASHUPDATE_MSGBOX), versionInfo.getType(true), versionInfo.getVersionString(), versionInfo.getDate(), versionInfo.getTime());
|
||||
|
||||
if (gotImage)
|
||||
{
|
||||
@@ -429,7 +429,6 @@ bool CFlashUpdate::checkVersion4Update()
|
||||
if ((strncmp(PACKAGE_RELEASE_CYCLE, versionInfo->getReleaseCycle(), 2) != 0) &&
|
||||
(ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_FLASHUPDATE_WRONGBASE, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_UPDATE) != CMsgBox::mbrYes))
|
||||
{
|
||||
delete versionInfo;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
@@ -437,12 +436,9 @@ bool CFlashUpdate::checkVersion4Update()
|
||||
if ((fileType != '0' /*Release*/) &&
|
||||
(ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_FLASHUPDATE_EXPERIMENTALIMAGE, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_UPDATE) != CMsgBox::mbrYes))
|
||||
{
|
||||
delete versionInfo;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
delete versionInfo;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user