Merge lp:~gordallott/unity/fix-937421 into lp:unity
Proposed by
Gord Allott
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Tim Penhey | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 2050 | ||||
Proposed branch: | lp:~gordallott/unity/fix-937421 | ||||
Merge into: | lp:unity | ||||
Diff against target: |
114 lines (+51/-38) 1 file modified
plugins/unityshell/src/HudIconTextureSource.cpp (+51/-38) |
||||
To merge this branch: | bzr merge lp:~gordallott/unity/fix-937421 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Approve | ||
Review via email: mp+94970@code.launchpad.net |
Commit message
Check pixbuf before dereferencing.
Description of the change
safety wrapper around the gdkpixbuf sent to the object
no test as I can't reproduce the issue, without the pixbuf that was causing the issue, we can't write a succesful test
UNBLOCK
To post a comment you must log in.
Is there any way we can fake a bad pixbuf for this function?
If not, how about extract that content into a stand alone function, and test that in a unit test.
If the function content is the same as the LaunchadIcon.cpp, they should both use the same function.