summaryrefslogtreecommitdiff
path: root/src/wkb-ibus-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wkb-ibus-config.c')
-rw-r--r--src/wkb-ibus-config.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wkb-ibus-config.c b/src/wkb-ibus-config.c
index ccfc14b..c0d6c16 100644
--- a/src/wkb-ibus-config.c
+++ b/src/wkb-ibus-config.c
@@ -216,6 +216,9 @@ end:
void
wkb_ibus_config_unregister(void)
{
- if (_conf_eet)
- wkb_ibus_config_eet_free(_conf_eet);
+ if (!_conf_eet)
+ return;
+
+ wkb_ibus_config_eet_free(_conf_eet);
+ _conf_eet = NULL;
}