mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:19:36 +02:00
* Fixed memleaks
git-svn-id: trunk@17452 -
This commit is contained in:
parent
e3e4988008
commit
13f948b3ca
@ -222,6 +222,7 @@ end;
|
||||
|
||||
destructor TCallStackDlg.Destroy;
|
||||
begin
|
||||
SetCallstack(nil);
|
||||
FCallStackNotification.OnChange := nil;
|
||||
FCallStackNotification.ReleaseReference;
|
||||
inherited Destroy;
|
||||
|
@ -77,6 +77,7 @@ end;
|
||||
|
||||
destructor TLocalsDlg.Destroy;
|
||||
begin
|
||||
SetLocals(nil);
|
||||
FLocalsNotification.OnChange := nil;
|
||||
FLocalsNotification.ReleaseReference;
|
||||
inherited Destroy;
|
||||
|
@ -77,6 +77,7 @@ end;
|
||||
|
||||
destructor TRegistersDlg.Destroy;
|
||||
begin
|
||||
SetRegisters(nil);
|
||||
FRegistersNotification.OnChange := nil;
|
||||
FRegistersNotification.ReleaseReference;
|
||||
inherited Destroy;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user