1) Remove the variable initalization in declaration.
2) Change all gBS->FreePool to use the MdePkg/BaseLib's FreePool. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6662 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -66,7 +66,7 @@ ClearLines (
|
||||
|
||||
gST->ConOut->SetCursorPosition (gST->ConOut, LeftColumn, TopRow);
|
||||
|
||||
gBS->FreePool (Buffer);
|
||||
FreePool (Buffer);
|
||||
return ;
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ DisplayPageFrame (
|
||||
break;
|
||||
}
|
||||
|
||||
gBS->FreePool (StrFrontPageBanner);
|
||||
FreePool (StrFrontPageBanner);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -350,7 +350,7 @@ DisplayPageFrame (
|
||||
}
|
||||
}
|
||||
|
||||
gBS->FreePool (Buffer);
|
||||
FreePool (Buffer);
|
||||
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ DisplayForm (
|
||||
//
|
||||
// Remove Buffer allocated for StringPtr after it has been used.
|
||||
//
|
||||
gBS->FreePool (StringPtr);
|
||||
FreePool (StringPtr);
|
||||
|
||||
//
|
||||
// Evaluate all the Expressions in this Form
|
||||
@@ -521,7 +521,7 @@ DisplayForm (
|
||||
NumberOfLines++;
|
||||
}
|
||||
|
||||
gBS->FreePool (OutputString);
|
||||
FreePool (OutputString);
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user