git-svn-id: trunk@42182 -
@@ -907,7 +907,7 @@ end;
destructor TSystemFunctionCallback.Destroy;
begin
if Assigned(fData) then
- FreeMemory(fData);
+ FreeMemory(fData, fSize);
end;
constructor TSystemFunctionCallbackProc.Create(aHandler: TFunctionCallProc; aContext: Pointer; aCallConv: TCallConv; constref aArgs: array of TFunctionCallParameterInfo; aResultType: PTypeInfo; aFlags: TFunctionCallFlags);
@@ -770,7 +770,7 @@ begin
{$ENDIF}
-procedure FreeMemory(aPtr: Pointer);
+procedure FreeMemory(aPtr: Pointer; aSize: PtrUInt);
{$IF DEFINED(WINDOWS)}
VirtualFree(aPtr, 0, MEM_RELEASE);
@@ -654,7 +654,7 @@ destructor TSystemFunctionCallback.Destroy;
{$ifdef windows}
{$endif}