From 968669d39e7a8a6dbe7343c129f93982461baed0 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 21 Nov 2019 16:04:04 +0100 Subject: [PATCH] app/internal/xkb: fix cleanup check Signed-off-by: Elias Naur --- app/internal/xkb/xkb_unix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/internal/xkb/xkb_unix.go b/app/internal/xkb/xkb_unix.go index 5485e18a..91e06daf 100644 --- a/app/internal/xkb/xkb_unix.go +++ b/app/internal/xkb/xkb_unix.go @@ -9,8 +9,8 @@ import ( "errors" "fmt" "os" - "syscall" "unicode" + "syscall" "unicode/utf8" "unsafe" @@ -46,7 +46,7 @@ var ( ) func (x *Context) Destroy() { - if x.state != nil { + if x.compState != nil { C.xkb_compose_state_unref(x.compState) x.compState = nil }