parent
bae80a3ec4
commit
36d893db03
1 changed files with 2 additions and 6 deletions
|
|
@ -409,12 +409,8 @@ void OBSBasic::UpdateVolumeControlsPeakMeterType()
|
|||
|
||||
void OBSBasic::ClearVolumeControls()
|
||||
{
|
||||
VolControl *control;
|
||||
|
||||
for (size_t i = 0; i < volumes.size(); i++) {
|
||||
control = volumes[i];
|
||||
delete control;
|
||||
}
|
||||
for (VolControl *vol : volumes)
|
||||
delete vol;
|
||||
|
||||
volumes.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue