~eliasnaur/gio

278e9bc334005f3612a4a8479ae0a89e252bc04a — Elias Naur a month ago c225daa
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>
1 files changed, 1 insertions(+), 3 deletions(-)

M app/internal/window/os_macos.go
M app/internal/window/os_macos.go => app/internal/window/os_macos.go +1 -3
@@ 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 {