mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 08:01:10 +00:00
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 ""
|
|
}
|
|
}
|
|
}
|