ENH: avoid crash on mac platform

Change-Id: I86e7394956c860b13319b53e647ec6c8f2842c91
(cherry picked from commit 5c7077b8b9712af50c28d675f5129b518e56c92e)
This commit is contained in:
Stone Li 2022-11-02 11:56:29 +08:00 committed by Lane.Wei
parent c21c84c62f
commit 61a54bb38e
1 changed files with 3 additions and 0 deletions

View File

@ -1212,7 +1212,10 @@ void GUI_App::shutdown()
}
if (m_agent) {
//BBS avoid a crash on mac platform
#ifdef __WINDOWS__
m_agent->start_discovery(false, false);
#endif
delete m_agent;
m_agent = nullptr;
}