Remove unnecessary tests to delete
The delete operator can be called on a null pointer, so there's no reason for these tests.
This commit is contained in:
parent
41f1ad32f2
commit
118e3edd18
1 changed files with 2 additions and 4 deletions
|
|
@ -550,10 +550,8 @@ OBSBasic::~OBSBasic()
|
|||
* can be freed, and we have no control over the destruction order of
|
||||
* the Qt UI stuff, so we have to manually clear any references to
|
||||
* libobs. */
|
||||
if (properties)
|
||||
delete properties;
|
||||
if (transformWindow)
|
||||
delete transformWindow;
|
||||
delete properties;
|
||||
delete transformWindow;
|
||||
|
||||
ClearVolumeControls();
|
||||
ui->sources->clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue