mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-05 07:14:53 -04:00
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user