Ignore:
Timestamp:
Feb 26, 2021, 11:56:48 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Use FreeAndNil instead of Free as defensive measure.
  • Modified: Use ihnerited without same method name specification.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r288 r290  
    258258    MenuItem := MenuItems[MenuItems.Count - 1];
    259259    MenuItems.Delete(MenuItems.Count - 1);
    260     MenuItem.Free;
     260    FreeAndNil(MenuItem);
    261261  end;
    262262end;
     
    439439      Bmp.Canvas.Draw(0, 0, jtex);
    440440    end;
    441     jtex.Free;
     441    FreeAndNil(jtex);
    442442  end
    443443  else
     
    464464        Bmp.Canvas.draw(0, 0, Png);
    465465    end;
    466     Png.Free;
     466    FreeAndNil(Png);
    467467  end
    468468  else
     
    17261726  RestoreResolution;
    17271727  for I := 0 to nGrExt - 1 do begin
    1728     GrExt[I].Data.Free;
    1729     GrExt[I].Mask.Free;
     1728    FreeAndNil(GrExt[I].Data);
     1729    FreeAndNil(GrExt[I].Mask);
    17301730    FreeMem(GrExt[I]);
    17311731  end;
Note: See TracChangeset for help on using the changeset viewer.