[gtk+/quartz-integration: 318/563] Don't forget to free an empty attribute set
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/quartz-integration: 318/563] Don't forget to free an empty attribute set
- Date: Sat, 9 Jul 2011 06:32:46 +0000 (UTC)
commit 678e3e1f72a3f7904f2310585d00ba17b0cfc6a5
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]