mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 08:25:34 +00:00
app/internal/window: [macOS] remove useless retain/release
The window and its view is guaranteed to outlast the display link. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -266,10 +266,8 @@ func gio_onCreate(view C.CFTypeRef) {
|
||||
scale: scale,
|
||||
}
|
||||
dl, err := NewDisplayLink(func() {
|
||||
C.CFRetain(view)
|
||||
runOnMain(func() {
|
||||
defer C.CFRelease(view)
|
||||
C.gio_setNeedsDisplay(view)
|
||||
C.gio_setNeedsDisplay(w.view)
|
||||
})
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user