Fixed list file generation error which was caused by using freed buffer.
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 18 Apr 2008 07:13:54 +0000 (07:13 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 18 Apr 2008 07:13:54 +0000 (07:13 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1159 7335b38e-4728-0410-8992-fb3ffe349368

Source/C/VfrCompile/VfrFormPkg.cpp

index 5e14c04..842c699 100644 (file)
@@ -824,11 +824,11 @@ CIfrObj::~CIfrObj (
   VOID\r
   )\r
 {\r
+  gCIfrRecordInfoDB.IfrRecordInfoUpdate (mRecordIdx, mLineNo, mObjBinBuf, mObjBinLen, mPkgOffset);\r
+\r
   if ((mDelayEmit == TRUE) && ((gCreateOp == TRUE))) {\r
     _EMIT_PENDING_OBJ ();\r
   }\r
-\r
-  gCIfrRecordInfoDB.IfrRecordInfoUpdate (mRecordIdx, mLineNo, mObjBinBuf, mObjBinLen, mPkgOffset);\r
 }\r
 \r
 /*\r