From c8e26406ceca45df1d869221fc144a21f36a7690 Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 1 Oct 2025 21:03:03 +0000 Subject: [PATCH] Bugfix: 862 --- internal/native/cgo_linux.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/native/cgo_linux.go b/internal/native/cgo_linux.go index 77b7d74f..8cd6d489 100644 --- a/internal/native/cgo_linux.go +++ b/internal/native/cgo_linux.go @@ -118,7 +118,6 @@ func uiInit(rotation uint16) { defer cgoLock.Unlock() cRotation := C.u_int16_t(rotation) - defer C.free(unsafe.Pointer(&cRotation)) C.jetkvm_ui_init(cRotation) } @@ -350,7 +349,6 @@ func uiDispSetRotation(rotation uint16) (bool, error) { nativeLogger.Info().Uint16("rotation", rotation).Msg("setting rotation") cRotation := C.u_int16_t(rotation) - defer C.free(unsafe.Pointer(&cRotation)) C.jetkvm_ui_set_rotation(cRotation) return true, nil