Skip to content

Commit

Permalink
Merge pull request #13938 from fwcd/initialize-is-instantiated
Browse files Browse the repository at this point in the history
AudioUnitManager: Avoid undefined behavior by initializing `m_isInstantiated` to `false`
  • Loading branch information
daschuer authored Nov 26, 2024
2 parents 6f94fd0 + 1250b2f commit 452263d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/effects/backends/audiounit/audiounitmanager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

AudioUnitManager::AudioUnitManager(AVAudioUnitComponent* _Nullable component,
AudioUnitInstantiationType instantiationType)
: m_name(QString::fromNSString([component name])) {
: m_name(QString::fromNSString([component name])),
m_isInstantiated(false) {
// NOTE: The component can be null if the lookup failed in
// `AudioUnitBackend::createProcessor`, in which case the effect simply acts
// as an identity function on the audio. Same applies when
Expand Down

0 comments on commit 452263d

Please sign in to comment.