1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed BeefPerf shutdown

This commit is contained in:
Brian Fiete 2022-06-13 13:38:17 -07:00
parent 2384b7edfc
commit 309e3cb02a

View file

@ -106,11 +106,6 @@ namespace BeefPerf
delete client; delete client;
} }
Widget.RemoveAndDelete(mWorkspacePanel);
Widget.RemoveAndDelete(mBoard);
Widget.RemoveAndDelete(mProfilePanel);
Widget.RemoveAndDelete(mFindPanel);
if (!mLogLines.IsEmpty) if (!mLogLines.IsEmpty)
{ {
var fs = scope FileStream(); var fs = scope FileStream();
@ -122,7 +117,7 @@ namespace BeefPerf
} }
} }
} }
static uint32 TimeToUnixTime(DateTime ft) static uint32 TimeToUnixTime(DateTime ft)
{ {
// takes the last modified date // takes the last modified date
@ -518,6 +513,15 @@ namespace BeefPerf
{ {
base.Shutdown(); base.Shutdown();
Widget.RemoveAndDelete(mWorkspacePanel);
mWorkspacePanel = null;
Widget.RemoveAndDelete(mBoard);
mBoard = null;
Widget.RemoveAndDelete(mProfilePanel);
mProfilePanel = null;
Widget.RemoveAndDelete(mFindPanel);
mFindPanel = null;
mShutdownEvent.Set(true); mShutdownEvent.Set(true);
} }