[gtk+/a11y] Don't forget to free an empty attribute set
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/a11y] Don't forget to free an empty attribute set
- Date: Sun, 19 Jun 2011 17:36:49 +0000 (UTC)
commit f3d9e9a571d1d573093bd0695836817c0d43dff1
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 19 13:36:20 2011 -0400
Don't forget to free an empty attribute set
tests/a11y/accessibility-dump.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tests/a11y/accessibility-dump.c b/tests/a11y/accessibility-dump.c
index c3054d9..3c56744 100644
--- a/tests/a11y/accessibility-dump.c
+++ b/tests/a11y/accessibility-dump.c
@@ -183,16 +183,16 @@ dump_state_set (GString *string,
if (set == NULL)
return;
- if (atk_state_set_is_empty (set))
- return;
-
- g_string_append_printf (string, "%*sstate:", depth, "");
- for (i = 0; i < ATK_STATE_LAST_DEFINED; i++)
+ if (!atk_state_set_is_empty (set))
{
- if (atk_state_set_contains_state (set, i))
- g_string_append_printf (string, " %s", atk_state_type_get_name (i));
+ g_string_append_printf (string, "%*sstate:", depth, "");
+ for (i = 0; i < ATK_STATE_LAST_DEFINED; i++)
+ {
+ if (atk_state_set_contains_state (set, i))
+ g_string_append_printf (string, " %s", atk_state_type_get_name (i));
+ }
+ g_string_append_c (string, '\n');
}
- g_string_append_c (string, '\n');
g_object_unref (set);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]