* Software Update with apply the settings (Part8)

- src/gui/ext_update.cpp: Use new instead of malloc
This commit is contained in:
micha-bbg
2012-11-03 16:05:35 +01:00
parent 7a5f5e8220
commit 01d44a6272

View File

@@ -63,7 +63,7 @@ CExtUpdate::CExtUpdate()
mtdRamError = "";
mtdNumber = -1;
MTDBufSize = 0xFFFF;
MTDBuf = (char*)malloc(MTDBufSize);
MTDBuf = new char[MTDBufSize];
backupList = CONFIGDIR "/settingsupdate.conf";
defaultBackup = CONFIGDIR;
@@ -78,7 +78,7 @@ CExtUpdate::CExtUpdate()
CExtUpdate::~CExtUpdate()
{
if (MTDBuf != NULL)
free(MTDBuf);
delete[] MTDBuf;
if(FileHelpers)
delete[] FileHelpers;
}