mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/SSignalKit git-subtree-mainline: 4459dc5b47e7db4ea1adb3a43a4324d1c2f9feab git-subtree-split: 359b2ee7c9f20f99f221f78e307369ef5ad0ece2
20 lines
392 B
Swift
20 lines
392 B
Swift
import Foundation
|
|
|
|
internal class DeallocatingObject : CustomStringConvertible {
|
|
private var deallocated: UnsafeMutablePointer<Bool>
|
|
|
|
init(deallocated: UnsafeMutablePointer<Bool>) {
|
|
self.deallocated = deallocated
|
|
}
|
|
|
|
deinit {
|
|
self.deallocated.pointee = true
|
|
}
|
|
|
|
var description: String {
|
|
get {
|
|
return ""
|
|
}
|
|
}
|
|
}
|