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/LocalPlayer/Tribes.pas

    r98 r290  
    9090    begin
    9191      ReallocMem(PictureList, 0);
    92       StdUnitScript.Free;
     92      FreeAndNil(StdUnitScript);
    9393    end;
    9494
     
    313313  destructor TTribe.Destroy;
    314314  begin
    315     Script.Free;
    316     inherited Destroy;
     315    FreeAndNil(Script);
     316    inherited;
    317317  end;
    318318
Note: See TracChangeset for help on using the changeset viewer.