Ignore:
Timestamp:
Jan 11, 2017, 5:26:09 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Deallocation of TPVScrollBar structure. Changed to class and added initialization and finalization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/PVSB.pas

    r49 r50  
    1111
    1212type
    13   TPVScrollbar = record
     13
     14  { TPVScrollbar }
     15
     16  TPVScrollbar = class
    1417    h: integer;
    1518    si: TScrollInfo;
    1619    Form: TForm;
     20    destructor Destroy; override;
    1721  end;
    1822
     
    154158end;
    155159
     160{ TPVScrollbar }
     161
     162destructor TPVScrollbar.Destroy;
     163begin
     164  h := 0;
     165  si.cbSize := 0;
     166  FreeAndNil(Form);
     167end;
     168
    156169end.
Note: See TracChangeset for help on using the changeset viewer.