Debugger: Add missing NULL check in ReportUserInterface.

Fixes #16565.
This commit is contained in:
Augustin Cavalier 2022-02-07 16:14:50 -05:00
parent cb860bd2eb
commit e48ac4a3de

View File

@ -38,7 +38,8 @@ ReportUserInterface::~ReportUserInterface()
if (fShowSemaphore >= 0)
delete_sem(fShowSemaphore);
fTeam->RemoveListener(this);
if (fTeam != NULL)
fTeam->RemoveListener(this);
}