CTF: Do not check nullptr before delete

Pick-to: 6.5
Change-Id: I3935d7a0898f20804e8dc6f916cb9a5954230c0f
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
This commit is contained in:
Antti Määttä 2023-06-01 10:52:36 +03:00
parent fab8bbd79f
commit c26c72a370

View File

@ -49,8 +49,7 @@ QCtfLib *QCtfLibImpl::instance()
void QCtfLibImpl::cleanup()
{
if (s_instance)
delete s_instance;
delete s_instance;
s_instance = nullptr;
}