LCL: TRawImage.PerformEffect: first check description then allocate mem

git-svn-id: trunk@34801 -
This commit is contained in:
mattias 2012-01-19 21:11:52 +00:00
parent 9adcf1b232
commit 6776c76423

View File

@ -1631,6 +1631,10 @@ var
P: Pointer;
i, j: integer;
begin
// check here for Description. Only RGBA data can be processed here.
if not CheckDescription then
Exit;
if CreateNewData then
begin
GetMem(AData, DataSize);
@ -1643,11 +1647,6 @@ begin
AData := P;
end;
// check here for Description. Only RGBA data can be processed here.
if not CheckDescription then
Exit;
case ADrawEffect of
gdeNormal: ;
gdeDisabled: