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"
"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
}