Ignore:
Timestamp:
Jul 2, 2010, 7:54:17 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Fixed crash on non-login

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/dklang-package-3.01/DKLang.pas

    r468 r819  
    22712271
    22722272  destructor TDKLanguageController.Destroy;
    2273   begin
    2274     if not (csDesigning in ComponentState) then LangManager.RemoveLangController(Self);
     2273  var LM: TDKLanguageManager; //kt
     2274  begin
     2275    //kt original --> if not (csDesigning in ComponentState) then begin LangManager.RemoveLangController(Self);
     2276    if not (csDesigning in ComponentState) then begin
     2277      LM := LangManager;
     2278      if Assigned(LM) then LM.RemoveLangController(Self);
     2279    end;
    22752280    FRootCompEntry.Free;
    22762281    FIgnoreList.Free;
     
    27712776finalization
    27722777  _LangManager.Free;
     2778  _LangManager := nil;  //kt added
    27732779end.
Note: See TracChangeset for help on using the changeset viewer.