Merge lp:~mkhu/compiz/compiz_fix_put_to_arbitrary_viewport into lp:compiz/0.9.9
Proposed by
Micheal Hsu
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Sam Spilsbury | ||||||||
Approved revision: | 3638 | ||||||||
Merged at revision: | 3638 | ||||||||
Proposed branch: | lp:~mkhu/compiz/compiz_fix_put_to_arbitrary_viewport | ||||||||
Merge into: | lp:compiz/0.9.9 | ||||||||
Diff against target: |
26 lines (+12/-4) 1 file modified
plugins/put/src/put.cpp (+12/-4) |
||||||||
To merge this branch: | bzr merge lp:~mkhu/compiz/compiz_fix_put_to_arbitrary_viewport | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Sam Spilsbury | Approve | ||
Review via email: mp+155659@code.launchpad.net |
Commit message
put: Don't resize the option vector every time PutScreen:
(LP: #1160710)
Description of the change
in put.cpp:
bool PutScreen:
the function resized the CompOption every time it's called.(this can cause memory leak).
subsequent calls to getIntOptionNam
the correct way is to find the "viewport" option and then set its value.
To post a comment you must log in.
Yep, this makes sense. Thanks for that.
Did you see any other plugins which had similar behaviour? Might be good to get them fixed first.