From ab37f4ad671049bd5b24da6500b9727ccf61e3d6 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Mon, 10 Aug 2009 13:29:46 +0800 Subject: [PATCH] Fix soem typos. --- src/ibushotkey.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ibushotkey.c b/src/ibushotkey.c index bcdaec4..295dea3 100644 --- a/src/ibushotkey.c +++ b/src/ibushotkey.c @@ -270,17 +270,17 @@ ibus_hotkey_profile_destroy (IBusHotkeyProfile *profile) /* free events */ if (priv->events) { - IBusHotkeyEvent *p; + IBusHotkeyEvent **p; gint i; - p = (IBusHotkeyEvent *)g_array_free (priv->events, FALSE); + p = (IBusHotkeyEvent **)g_array_free (priv->events, FALSE); priv->events = NULL; - while (i = 0; p[i] != NULL; i++) { - if (p->event != 0) { + for (i = 0; p[i] != NULL; i++) { + if (p[i]->event != 0) { /* free the hotkeys list, but do not free data in the list * The datas will be free in g_tree_destroy * */ - g_list_free (p->hotkeys); + g_list_free (p[i]->hotkeys); } } g_free (p); -- 2.7.4