Merge lp:~apinheiro/unity/bug843280 into lp:unity
Proposed by
Alejandro Piñeiro
Status: | Merged |
---|---|
Merged at revision: | 1696 |
Proposed branch: | lp:~apinheiro/unity/bug843280 |
Merge into: | lp:unity |
Diff against target: |
79 lines (+24/-20) 2 files modified
services/panel-indicator-accessible.c (+21/-12) services/panel-root-accessible.c (+3/-8) |
To merge this branch: | bzr merge lp:~apinheiro/unity/bug843280 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Neil J. Patel (community) | Approve | ||
Review via email: mp+78271@code.launchpad.net |
Description of the change
The error was on the callback for "entry-removed". The accessible object for the indicator maintains a list of the accessible objects for each entry. When a entry is removed this list is updated, and requires to navigate on the list to check which is the entry removed and get the index.
The error was that removed the list, but the loop keep iterating over the list, and with and outdated iterator. The solution was just getting out of the loop and remove the element after that.
I also fixed a leak on two _finalize methods, as those removed the contents but not the list itself, and making things more complex (g_slist_free_full is just one line).
To post a comment you must log in.
Looks good, approved.