mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-28 12:02:15 -05:00
Free manager earlier.
This commit is contained in:
parent
edf0d61fb8
commit
fdc3df9c3b
@ -1683,8 +1683,9 @@ begin
|
|||||||
if not DeleteTab(i,true) then
|
if not DeleteTab(i,true) then
|
||||||
begin;
|
begin;
|
||||||
CloseAction := caNone;
|
CloseAction := caNone;
|
||||||
exit
|
exit;
|
||||||
end;
|
end;
|
||||||
|
FreeAndNil(ExtManager);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TForm1.FormCreate(Sender: TObject);
|
procedure TForm1.FormCreate(Sender: TObject);
|
||||||
@ -1754,6 +1755,8 @@ begin
|
|||||||
TMufasaTab(Tabs[i]).Free;
|
TMufasaTab(Tabs[i]).Free;
|
||||||
for i := 0 to high(RecentFileItems) do
|
for i := 0 to high(RecentFileItems) do
|
||||||
RecentFileItems[i].Free;
|
RecentFileItems[i].Free;
|
||||||
|
if ExtManager <> nil then
|
||||||
|
ExtManager.free;
|
||||||
Tabs.free;
|
Tabs.free;
|
||||||
Selector.Free;
|
Selector.Free;
|
||||||
Picker.Free;
|
Picker.Free;
|
||||||
@ -1762,7 +1765,6 @@ begin
|
|||||||
SetLength(DebugStream, 0);
|
SetLength(DebugStream, 0);
|
||||||
RecentFiles.Free;
|
RecentFiles.Free;
|
||||||
DebugCriticalSection.Free;
|
DebugCriticalSection.Free;
|
||||||
ExtManager.free;
|
|
||||||
{$ifdef MSWindows}
|
{$ifdef MSWindows}
|
||||||
if not UnRegisterHotkey(Self.Handle,0) then
|
if not UnRegisterHotkey(Self.Handle,0) then
|
||||||
mDebugLn('Unable to unregister ctrl + alt + s as global hotkey');
|
mDebugLn('Unable to unregister ctrl + alt + s as global hotkey');
|
||||||
|
Loading…
Reference in New Issue
Block a user