Fix NSE Leak (#2022)

This commit is contained in:
Mauro
2023-11-03 21:30:58 +01:00
committed by GitHub
parent 4985d410b3
commit ce72a9b5f2
11 changed files with 77 additions and 22 deletions
@@ -59,9 +59,13 @@ extension MediaFileHandleProxy: Hashable {
/// An unmanaged file handle that can be created direct from a URL.
///
/// This type allows for mocking but doesn't provide the automatic clean-up mechanism provided by the SDK.
private struct UnmanagedMediaFileHandle: MediaFileHandleProtocol {
private class UnmanagedMediaFileHandle: MediaFileHandleProtocol {
let url: URL
init(url: URL) {
self.url = url
}
func path() -> String {
url.path()
}