Merge lp:~unity-team/unity/unity.fix-sc-icon-to-launcher-animation-981168 into lp:unity
Proposed by
Jay Taoko
Status: | Merged |
---|---|
Approved by: | Gord Allott |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2367 |
Proposed branch: | lp:~unity-team/unity/unity.fix-sc-icon-to-launcher-animation-981168 |
Merge into: | lp:unity |
Diff against target: |
120 lines (+47/-18) 2 files modified
launcher/Launcher.cpp (+36/-18) launcher/Launcher.h (+11/-0) |
To merge this branch: | bzr merge lp:~unity-team/unity/unity.fix-sc-icon-to-launcher-animation-981168 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gord Allott (community) | Approve | ||
Review via email: mp+102239@code.launchpad.net |
Commit message
* Capture information about the icon of the application to be installed from the software center. Re-use it when rendering the launcher interface.
* Fix bug #981168
Description of the change
* Capture information about the icon of the application to be installed from the software center. Re-use it when rendering the launcher interface.
* Fix bug #981168
UNBLOCK
To post a comment you must log in.
just a quick fix needed on this branch,
first the we need to g_free the _sc_* pointers in the destructor
Then secondly, in this code, after g_free'ing the pointers the pointers should be set to NULL:
25 + addrequest_ special. emit(_sc_ icon_desktop_ file, AbstractLaunche rIcon:: Ptr(), _sc_icon_ aptdaemon_ task, _sc_icon, _sc_icon_x, _sc_icon_y, _sc_icon_size); _sc_icon_ title); _sc_icon_ desktop_ file); _sc_icon_ aptdaemon_ task);
26 + if (_sc_anim_icon)
27 + {
28 + launcher_
29 + g_free(_sc_icon);
30 + g_free(
31 + g_free(
32 + g_free(
33 + _sc_anim_icon = false;
34 + }
Then thirdly, before this code we should be g_free'ing the pointers to ensure there is no possible memory leak
58 + self->_sc_anim_icon = true; get(parameters, "(ssiiiss)", &self-> _sc_icon_ title, _sc_icon_ size, _sc_icon_ desktop_ file, _sc_icon_ aptdaemon_ task, NULL);
59 + g_variant_
60 + &self->_sc_icon,
61 + &self->_sc_icon_x,
62 + &self->_sc_icon_y,
63 + &self->
64 + &self->
65 + &self->
Other than that, looks good to me