mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 00:21:12 +00:00
20 lines
384 B
Swift
20 lines
384 B
Swift
import Foundation
|
|
|
|
internal class DeallocatingObject : Printable {
|
|
private var deallocated: UnsafeMutablePointer<Bool>
|
|
|
|
init(deallocated: UnsafeMutablePointer<Bool>) {
|
|
self.deallocated = deallocated
|
|
}
|
|
|
|
deinit {
|
|
self.deallocated.memory = true
|
|
}
|
|
|
|
public var description: String {
|
|
get {
|
|
return ""
|
|
}
|
|
}
|
|
}
|