From 42c766c1c293e8b2ff8d191de927b462abcb3411 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Mon, 10 Aug 2009 13:08:16 +0800 Subject: [PATCH] Fix error in ibus_prop_list_destroy function. --- src/ibusproperty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ibusproperty.c b/src/ibusproperty.c index 449f23c..1b70f70 100644 --- a/src/ibusproperty.c +++ b/src/ibusproperty.c @@ -439,9 +439,8 @@ ibus_prop_list_destroy (IBusPropList *prop_list) p = (IBusProperty **) g_array_free (prop_list->properties, FALSE); - while (p[i] != NULL) { + for (i = 0; p[i] != NULL; i++) { g_object_unref (p[i]); - i ++; } g_free (p); -- 2.7.4