diff options
author | Mike Gorse <mgorse@novell.com> | 2010-12-29 19:12:55 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@novell.com> | 2010-12-29 19:12:55 -0500 |
commit | f8230043c35757edf02c2f8ce7217f51294e52e8 (patch) | |
tree | 236dc8f942d2b2d12eb3b3bc4ee525a7863ef9a8 /atspi/atspi-stateset.c | |
parent | 92511ee7ab20a3781fc9a337b6933ab8ca20d2a2 (diff) | |
download | at-spi2-core-f8230043c35757edf02c2f8ce7217f51294e52e8.tar.gz |
Initial pass at adding i18n and proper object disposal
Objects are now "disposed" when RemoveAccessible is received or the application
goes away. This allows the objects to be dereferenced and properly cleaned up.
Also fix some related bugs and add i18n.
Some reference leaks remain, however.
Diffstat (limited to 'atspi/atspi-stateset.c')
-rw-r--r-- | atspi/atspi-stateset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/atspi/atspi-stateset.c b/atspi/atspi-stateset.c index 958b734b..e4adaa0f 100644 --- a/atspi/atspi-stateset.c +++ b/atspi/atspi-stateset.c @@ -197,6 +197,8 @@ gboolean atspi_state_set_contains (AtspiStateSet *set, AtspiStateType state) { + if (!set) + return FALSE; refresh_states (set); return (set->states & (1 << state)) ? TRUE : FALSE; } |