app/internal/xkb: fix cleanup check

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-11-21 16:04:04 +01:00
parent 4072361fd5
commit 968669d39e
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"os" "os"
"syscall"
"unicode" "unicode"
"syscall"
"unicode/utf8" "unicode/utf8"
"unsafe" "unsafe"
@@ -46,7 +46,7 @@ var (
) )
func (x *Context) Destroy() { func (x *Context) Destroy() {
if x.state != nil { if x.compState != nil {
C.xkb_compose_state_unref(x.compState) C.xkb_compose_state_unref(x.compState)
x.compState = nil x.compState = nil
} }