diff options
Diffstat (limited to 'BaseTools/Source/C/VfrCompile/VfrUtilityLib.h')
-rw-r--r-- | BaseTools/Source/C/VfrCompile/VfrUtilityLib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.h b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.h index 5faa1f40fd..35d17a031b 100644 --- a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.h +++ b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.h @@ -33,6 +33,8 @@ extern BOOLEAN VfrCompatibleMode; #define EFI_BITS_PER_UINT32 (1 << EFI_BITS_SHIFT_PER_UINT32)
#define BUFFER_SAFE_FREE(Buf) do { if ((Buf) != NULL) { delete (Buf); } } while (0);
+#define ARRAY_SAFE_FREE(Buf) do { if ((Buf) != NULL) { delete[] (Buf); } } while (0);
+
class CVfrBinaryOutput {
public:
@@ -139,7 +141,7 @@ struct SVfrPackStackNode { ~SVfrPackStackNode (VOID) {
if (mIdentifier != NULL) {
- delete mIdentifier;
+ delete[] mIdentifier;
}
mNext = NULL;
}
|