Removed objc_release().
This commit is contained in:
parent
fbde220ab1
commit
ef43865923
|
@ -43,10 +43,6 @@ func objc_alloc(class C.id) C.id {
|
||||||
return C.objc_msgSend_noargs(class, _alloc)
|
return C.objc_msgSend_noargs(class, _alloc)
|
||||||
}
|
}
|
||||||
|
|
||||||
func objc_release(obj C.id) {
|
|
||||||
C.objc_msgSend_noargs(obj, _release)
|
|
||||||
}
|
|
||||||
|
|
||||||
func toNSString(str string) C.id {
|
func toNSString(str string) C.id {
|
||||||
cstr := C.CString(str)
|
cstr := C.CString(str)
|
||||||
defer C.free(unsafe.Pointer(cstr))
|
defer C.free(unsafe.Pointer(cstr))
|
||||||
|
|
|
@ -50,7 +50,7 @@ func ui(main func()) error {
|
||||||
_uitask,
|
_uitask,
|
||||||
fp,
|
fp,
|
||||||
C.BOOL(C.YES)) // wait so we can properly drain the autorelease pool; on other platforms we wind up waiting anyway (since the main thread can only handle one thing at a time) so
|
C.BOOL(C.YES)) // wait so we can properly drain the autorelease pool; on other platforms we wind up waiting anyway (since the main thread can only handle one thing at a time) so
|
||||||
objc_release(pool)
|
C.objc_msgSend_noargs(pool, _release)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue