mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #5837
jessica181920 (1): fix: Remove unnecessary null pointer check
This commit is contained in:
commit
9e70dbff4b
|
@ -131,10 +131,8 @@ CameraSource& CameraSource::getInstance()
|
|||
|
||||
void CameraSource::destroyInstance()
|
||||
{
|
||||
if (instance) {
|
||||
delete instance;
|
||||
instance = nullptr;
|
||||
}
|
||||
delete instance;
|
||||
instance = nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user