Merge lp:~kuchtam/mir/Bug_1664760 into lp:mir
Proposed by
Michał Kuchta
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4043 |
Proposed branch: | lp:~kuchtam/mir/Bug_1664760 |
Merge into: | lp:mir |
Diff against target: |
43 lines (+19/-1) 2 files modified
src/server/compositor/multi_monitor_arbiter.cpp (+2/-1) tests/unit-tests/compositor/test_multi_monitor_arbiter.cpp (+17/-0) |
To merge this branch: | bzr merge lp:~kuchtam/mir/Bug_1664760 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mir CI Bot | continuous-integration | Approve | |
Daniel van Vugt | Approve | ||
Review via email: mp+317377@code.launchpad.net |
Commit message
Fix for server crash LP: #1664760
The main reason of this crash is to performing (in clean_onscreen_
Description of the change
I committed fix for bug: 1664760.
The main reason of this crash is to performing (in clean_onscreen_
To post a comment you must log in.
Great fix, thanks!
I think it would be more clear and safer for future maintenance though to save the return value before the iterator gets invalidated:
auto& last_entry = onscreen_ buffers. front() ; entry.use_ count++ ; rMode:: multi_monitor_ sync)
clean_ onscreen_ buffers( lk);
last_
auto ret = last_entry.buffer;
if (mode == mc::MultiMonito
return ret;