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:
parent
fab8bbd79f
commit
c26c72a370
@ -49,8 +49,7 @@ QCtfLib *QCtfLibImpl::instance()
|
||||
|
||||
void QCtfLibImpl::cleanup()
|
||||
{
|
||||
if (s_instance)
|
||||
delete s_instance;
|
||||
delete s_instance;
|
||||
s_instance = nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user