Commit 5952c6ab authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Don't forget to free an empty attribute set

parent f3ae93af
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment