diff options
author | Ted Gould <ted@gould.cx> | 2011-03-21 11:47:50 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-03-21 11:47:50 -0500 |
commit | 9f73955ad07742884819edb0da91d6f71e5bb310 (patch) | |
tree | 2cfa72fcbc7f0a95fbb03c23cd0c914ec1c740a6 /libdbusmenu-glib | |
parent | ef9ec99c8deea6464debc0f46db35a943143ba79 (diff) | |
download | libdbusmenu-9f73955ad07742884819edb0da91d6f71e5bb310.tar.gz libdbusmenu-9f73955ad07742884819edb0da91d6f71e5bb310.tar.bz2 libdbusmenu-9f73955ad07742884819edb0da91d6f71e5bb310.zip |
Removing an unneeded iner_new
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 5aae810..77154fb 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -599,9 +599,10 @@ get_properties_callback (GObject *obj, GAsyncResult * res, gpointer user_data) /* Callback all the folks we can find */ GVariant * child = g_variant_get_child_value(params, 0); - GVariantIter * iter = g_variant_iter_new(child); + GVariantIter iter; + g_variant_iter_init(&iter, child); g_variant_unref(child); - while ((child = g_variant_iter_next_value(iter)) != NULL) { + while ((child = g_variant_iter_next_value(&iter)) != NULL) { if (g_strcmp0(g_variant_get_type_string(child), "(ia{sv})") != 0) { g_warning("Properties return signature is not '(ia{sv})' it is '%s'", g_variant_get_type_string(child)); g_variant_unref(child); @@ -631,7 +632,6 @@ get_properties_callback (GObject *obj, GAsyncResult * res, gpointer user_data) g_variant_unref(properties); g_variant_unref(child); } - g_variant_iter_free(iter); g_variant_unref(params); /* Provide errors for those who we can't */ |