mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Software Update with apply the settings (Part8)
- src/gui/ext_update.cpp: Use new instead of malloc
Origin commit data
------------------
Branch: ni/coolstream
Commit: 01d44a6272
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-11-03 (Sat, 03 Nov 2012)
Origin message was:
------------------
* Software Update with apply the settings (Part8)
- src/gui/ext_update.cpp: Use new instead of malloc
------------------
This commit was generated by Migit
This commit is contained in:
@@ -63,7 +63,7 @@ CExtUpdate::CExtUpdate()
|
|||||||
mtdRamError = "";
|
mtdRamError = "";
|
||||||
mtdNumber = -1;
|
mtdNumber = -1;
|
||||||
MTDBufSize = 0xFFFF;
|
MTDBufSize = 0xFFFF;
|
||||||
MTDBuf = (char*)malloc(MTDBufSize);
|
MTDBuf = new char[MTDBufSize];
|
||||||
backupList = CONFIGDIR "/settingsupdate.conf";
|
backupList = CONFIGDIR "/settingsupdate.conf";
|
||||||
defaultBackup = CONFIGDIR;
|
defaultBackup = CONFIGDIR;
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ CExtUpdate::CExtUpdate()
|
|||||||
CExtUpdate::~CExtUpdate()
|
CExtUpdate::~CExtUpdate()
|
||||||
{
|
{
|
||||||
if (MTDBuf != NULL)
|
if (MTDBuf != NULL)
|
||||||
free(MTDBuf);
|
delete[] MTDBuf;
|
||||||
if(FileHelpers)
|
if(FileHelpers)
|
||||||
delete[] FileHelpers;
|
delete[] FileHelpers;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user