Skip to content

Commit cd61b49

Browse files
committed
Return early if render resources already deallocated
This fixes the crash in macOS and iOS 26.
1 parent 23e8e3b commit cd61b49

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/AudioKitEX/AudioKitAU.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ open class AudioKitAU: AUAudioUnit {
4646
/// Delllocate Render Resources
4747
override public func deallocateRenderResources() {
4848
super.deallocateRenderResources()
49+
guard renderResourcesAllocated else { return }
4950
deallocateRenderResourcesDSP(dsp)
5051
internalBuffers = []
5152
}

0 commit comments

Comments
 (0)