a11y: Fix up listener registration minimally

For god-knows-what reason, at-spi is trying various formats
of strings when registering listeners, triggering g_warnings()
from gailutil code. Stop doing that.

Also, don't leak temporary string arrays that are a side-effect
of passing parameters around as formatted strings.

https://bugzilla.gnome.org/show_bug.cgi?id=658168
This commit is contained in:
Matthias Clasen
2011-09-05 11:54:41 -04:00
parent a51a31466d
commit f1476f31fe

View File

@ -271,8 +271,11 @@ gail_util_add_global_event_listener (GSignalEmissionHook listener,
split_string = g_strsplit (event_type, ":", 3); split_string = g_strsplit (event_type, ":", 3);
if (g_strv_length (split_string) == 3)
rc = add_listener (listener, split_string[1], split_string[2], event_type); rc = add_listener (listener, split_string[1], split_string[2], event_type);
g_strfreev (split_string);
return rc; return rc;
} }