* Fixed memleaks

git-svn-id: trunk@17452 -
This commit is contained in:
marc 2008-11-19 23:14:39 +00:00
parent e3e4988008
commit 13f948b3ca
4 changed files with 4 additions and 1 deletions

View File

@ -222,6 +222,7 @@ end;
destructor TCallStackDlg.Destroy;
begin
SetCallstack(nil);
FCallStackNotification.OnChange := nil;
FCallStackNotification.ReleaseReference;
inherited Destroy;

View File

@ -77,6 +77,7 @@ end;
destructor TLocalsDlg.Destroy;
begin
SetLocals(nil);
FLocalsNotification.OnChange := nil;
FLocalsNotification.ReleaseReference;
inherited Destroy;

View File

@ -77,6 +77,7 @@ end;
destructor TRegistersDlg.Destroy;
begin
SetRegisters(nil);
FRegistersNotification.OnChange := nil;
FRegistersNotification.ReleaseReference;
inherited Destroy;

View File

@ -1526,7 +1526,6 @@ begin
FDebugger := nil;
FBreakPoints := TManagedBreakPoints.Create(Self);
FBreakPointGroups := TIDEBreakPointGroups.Create;
FWatches := TManagedWatches.Create(Self);
FExceptions := TManagedExceptions.Create(Self);
FSignals := TManagedSignals.Create(Self);
@ -1557,6 +1556,7 @@ begin
FreeAndNil(FExceptions);
FreeAndNil(FSignals);
FreeAndNil(FLocals);
FreeAndNil(FRegisters);
FreeAndNil(FUserSourceFiles);
FreeAndNil(FHiddenDebugOutputLog);