src/gui/update_ext.cpp: Fix memleak (Thx SatBaby)

- rename enum's 'RESET_Fxx' => 'CLOSE_Fxx'
This commit is contained in:
Michael Liebmann
2013-07-19 11:59:54 +02:00
parent 9cb1a9c335
commit 61d36266c8
2 changed files with 34 additions and 20 deletions

View File

@@ -39,15 +39,17 @@ class CExtUpdate
enum
{
RESET_UNLOAD = 1,
RESET_FD1 = 2,
RESET_FD2 = 4,
RESET_F1 = 8
CLOSE_FD1 = 2,
CLOSE_FD2 = 4,
CLOSE_F1 = 8,
DELETE_MTDBUF = 16
};
std::string imgFilename;
std::string mtdRamError;
int mtdNumber;
int fd1, fd2;
FILE *f1;
char *MTDBuf;
std::string mtdramDriver;
std::string backupList, defaultBackup;
std::string mountPkt;