If I have a structure:
typedef struct {
unsigned char data[HEX_FLASH_BUFFER];
bool isLoad;
unsigned int length;
} s_hexFLASH;
typedef struct {
s_hexFLASH flash;
} s_hexFile;
s_hexFile *hex = new s_hexFile;
How can I delete this whole structure? Because when a did something like this:
delete[] hex->flash.data;
After this I'am still able to read data:
cout << hex->flash.data[0] << endl;