Changeset 105 for trunk/Start.pas


Ignore:
Timestamp:
Jan 25, 2018, 11:33:52 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Various memory leaks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r104 r105  
    265265    r1 := CreateRectRgn(TabOffset + 4 * TabSize + 2, 0, Width, TabHeight);
    266266    CombineRgn(r0, r0, r1, RGN_DIFF);
    267     // DeleteObject(r1);
     267    DeleteObject(r1);
    268268    r1 := CreateRectRgn(QuitBtn.left, QuitBtn.top, QuitBtn.left + QuitBtn.width,
    269269      QuitBtn.top + QuitBtn.height);
    270270    CombineRgn(r0, r0, r1, RGN_OR);
    271     // DeleteObject(r1);
     271    DeleteObject(r1);
    272272    SetWindowRgn(Handle, r0, false);
    273     // DeleteObject(r0); // causes crash with Windows 95
     273    DeleteObject(r0); // causes crash with Windows 95
    274274  end
    275275  else
     
    13431343        TObject(f.Time));
    13441344    until FindNext(f) <> 0;
     1345  FindClose(f);
    13451346  ListIndex[2] := FormerGames.Count - 1;
    13461347  if (ShowTab = 2) and (FormerGames.Count > 0) then
     
    13581359      Maps.Add(Copy(f.Name, 1, Length(f.Name) - 9));
    13591360    until FindNext(f) <> 0;
     1361  FindClose(F);
    13601362  Maps.Sort;
    13611363  Maps.Insert(0, Phrases.Lookup('RANMAP'));
Note: See TracChangeset for help on using the changeset viewer.