I am using a variable inside a function with holds and UnsafeMutablePointer<objc_property_t>
. Should I call free
on it?
func logProps() {
var count: UInt32 = 0
let _propArr = class_copyPropertyList(cls, &count)
// ...
// free(propArr) // ?
}
On a different note, is free
same as using deallocate
(Swift UnsafeMutablePointer: Must I call deinitialize before deallocate?) ?