mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix NSE Leak (#2022)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user