Merge lp:~mterry/libdbusmenu/fix-bad-image-set into lp:libdbusmenu/0.5
Proposed by
Michael Terry
Status: | Merged |
---|---|
Approved by: | Ted Gould |
Approved revision: | 341 |
Merged at revision: | 341 |
Proposed branch: | lp:~mterry/libdbusmenu/fix-bad-image-set |
Merge into: | lp:libdbusmenu/0.5 |
Diff against target: |
11 lines (+1/-0) 1 file modified
libdbusmenu-gtk/genericmenuitem.c (+1/-0) |
To merge this branch: | bzr merge lp:~mterry/libdbusmenu/fix-bad-image-set |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ted Gould (community) | Approve | ||
Review via email: mp+78303@code.launchpad.net |
Description of the change
I don't believe this code is hit currently (or we'd likely have lots of crashes), but it's something I noticed.
If genericmenuitem
This would happen because we would set imagew to the previous image child widget. Then gtk_widget_destroy it. Then because the 'child' pointer was non-NULL, we'd try to treat 'child' as a box. But we should be going down the 'child is NULL' code path.
So this branch NULLs out the child pointer.
To post a comment you must log in.