Skip to content

Commit bf568a1

Browse files
authored
[Fix]Break StreamVideo memory leak (#814)
1 parent 5c2224c commit bf568a1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77
### ✅ Added
88
- `CallViewController` was updated to accept the `video` flag when starting a call. [#811](https://github.com/GetStream/stream-video-swift/pull/811)
99

10+
### 🐞 Fixed
11+
- Fix a retain cycle that was causing StreamVideo to leak in projects using NoiseCancellation. [#814](https://github.com/GetStream/stream-video-swift/pull/814)
12+
1013
# [1.22.2](https://github.com/GetStream/stream-video-swift/releases/tag/1.22.2)
1114
_May 13, 2025_
1215

Sources/StreamVideo/WebRTC/AudioFilter/Filters/NoiseCancellationFilter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public final class NoiseCancellationFilter: AudioFilter, @unchecked Sendable, Ob
2626
didSet { didUpdateActiveCall(activeCall, oldValue: oldValue) }
2727
}
2828

29-
var streamVideo: StreamVideo? {
29+
weak var streamVideo: StreamVideo? {
3030
didSet { didUpdate(streamVideo) }
3131
}
3232

0 commit comments

Comments
 (0)