[glib/glib-2-32] GDBusNodeInfo: remove a spurious for loop



commit aa6239d9998995a69cb65c6ea9ad2723a39e1cf8
Author: Rui Matos <tiagomatos gmail com>
Date:   Tue Jul 10 11:38:34 2012 +0200

    GDBusNodeInfo: remove a spurious for loop
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679671

 gio/gdbusintrospection.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gio/gdbusintrospection.c b/gio/gdbusintrospection.c
index e24e5a7..30ad266 100644
--- a/gio/gdbusintrospection.c
+++ b/gio/gdbusintrospection.c
@@ -1817,11 +1817,8 @@ g_dbus_node_info_new_for_xml (const gchar  *xml_data,
       /* clean up */
       for (n = 0; n < num_nodes; n++)
         {
-          for (n = 0; n < num_nodes; n++)
-            {
-              g_dbus_node_info_unref (ughret[n]);
-              ughret[n] = NULL;
-            }
+          g_dbus_node_info_unref (ughret[n]);
+          ughret[n] = NULL;
         }
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]