From: Peng Huang Date: Mon, 10 Aug 2009 05:29:46 +0000 (+0800) Subject: Fix soem typos. X-Git-Tag: 1.2.0.20090810~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab37f4ad671049bd5b24da6500b9727ccf61e3d6;p=platform%2Fupstream%2Fibus.git Fix soem typos. --- 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);