From 5c1852356f89c8aa8408fc2ff6e33bd9cf1c1f65 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Tue, 23 May 2017 10:39:44 +0100 Subject: [PATCH] Fix -Wmisleading-indentation warnings There are a couple of places where code is indented as if it should be part of an `if' block, but it isn't because there are no braces. Fix those by unindenting. Caught by -Werror=misleading-indentation. --- atspi/atspi-accessible.c | 9 +++++---- registryd/registry.c | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c index b84317f..e7f1446 100644 --- a/atspi/atspi-accessible.c +++ b/atspi/atspi-accessible.c @@ -173,13 +173,14 @@ atspi_accessible_finalize (GObject *object) { AtspiAccessible *accessible = ATSPI_ACCESSIBLE (object); - g_free (accessible->description); - g_free (accessible->name); + g_free (accessible->description); + g_free (accessible->name); + if (accessible->attributes) g_hash_table_unref (accessible->attributes); - if (accessible->priv->cache) - g_hash_table_destroy (accessible->priv->cache); + if (accessible->priv->cache) + g_hash_table_destroy (accessible->priv->cache); #ifdef DEBUG_REF_COUNTS accessible_count--; diff --git a/registryd/registry.c b/registryd/registry.c index b5d91f8..cbf0c1b 100644 --- a/registryd/registry.c +++ b/registryd/registry.c @@ -104,7 +104,8 @@ return_v_string (DBusMessageIter * iter, const gchar * str) if (!dbus_message_iter_open_container (iter, DBUS_TYPE_VARIANT, "s", &variant)) return FALSE; - dbus_message_iter_append_basic (&variant, DBUS_TYPE_STRING, &str); + + dbus_message_iter_append_basic (&variant, DBUS_TYPE_STRING, &str); dbus_message_iter_close_container (iter, &variant); return TRUE; } -- 2.7.4