Merge lp:~larsu/indicator-sound/lp1244386 into lp:indicator-sound/14.04
Proposed by
Lars Karlitski
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Charles Kerr | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 396 | ||||
Proposed branch: | lp:~larsu/indicator-sound/lp1244386 | ||||
Merge into: | lp:indicator-sound/14.04 | ||||
Diff against target: |
81 lines (+29/-15) 1 file modified
src/volume-control.vala (+29/-15) |
||||
To merge this branch: | bzr merge lp:~larsu/indicator-sound/lp1244386 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Charles Kerr (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+192800@code.launchpad.net |
Description of the change
VolumeControl: don't pass vala closures into libpulse
Libpulse's vala bindings don't specify that callbacks passed into some of its functions (e.g., get_server_info) can be called after the function returns. Vala thus frees closure data after these functions return.
This can't easily be fixed in the bindings, because libpulse doesn't provide variants of these functions with destroy_notifies.
This patch works around this problem by only passing non-closure functions into libpulse.
To post a comment you must log in.
PASSED: Continuous integration, rev:391 jenkins. qa.ubuntu. com/job/ indicator- sound-ci/ 67/ jenkins. qa.ubuntu. com/job/ indicator- sound-trusty- amd64-ci/ 6 jenkins. qa.ubuntu. com/job/ indicator- sound-trusty- armhf-ci/ 6 jenkins. qa.ubuntu. com/job/ indicator- sound-trusty- armhf-ci/ 6/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: 10.97.0. 26:8080/ job/indicator- sound-ci/ 67/rebuild
http://