Fix error in ibus_prop_list_destroy function.
authorPeng Huang <shawn.p.huang@gmail.com>
Mon, 10 Aug 2009 05:08:16 +0000 (13:08 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Mon, 10 Aug 2009 05:08:16 +0000 (13:08 +0800)
src/ibusproperty.c

index 449f23c..1b70f70 100644 (file)
@@ -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);