mirror of
https://github.com/moparisthebest/Simba
synced 2024-12-23 07:48:50 -05:00
FIXED YO ERRORS!
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@48 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
5ca4ac75e1
commit
dee2b98fd9
@ -210,7 +210,7 @@ begin
|
||||
end;
|
||||
FreeSpots[FreeSpotsHigh] := Number;
|
||||
end;
|
||||
BmpArray[Number].Free;
|
||||
FreeAndNil(BmpArray[Number]);
|
||||
end;
|
||||
|
||||
function TMufasaBitmap.SaveToFile(const FileName: string): boolean;
|
||||
@ -220,7 +220,7 @@ var
|
||||
begin
|
||||
ArrDataToRawImage(FData,Point(w,h),RawImage);
|
||||
// Bmp := Graphics.TBitmap.Create;
|
||||
Bmp := TLazIntfImage.Create(RawImage,true);
|
||||
Bmp := TLazIntfImage.Create(RawImage,false);
|
||||
Bmp.SaveToFile(FileName);
|
||||
Bmp.Free;
|
||||
end;
|
||||
@ -259,8 +259,14 @@ begin
|
||||
end;
|
||||
|
||||
destructor TMBitmaps.Destroy;
|
||||
var
|
||||
I : integer;
|
||||
begin
|
||||
|
||||
for i := 0 to BmpsCurr do
|
||||
if BmpArray[i] <> nil then
|
||||
FreeAndNil(BmpArray[i]);
|
||||
SetLength(BmpArray,0);
|
||||
SetLength(FreeSpots,0);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
@ -314,7 +320,7 @@ end;
|
||||
destructor TMufasaBitmap.Destroy;
|
||||
begin
|
||||
if Assigned(FData) then
|
||||
Freemem(FData,w*h*SizeOf(TRGB32));
|
||||
Freemem(FData);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user