Merge lp://qastaging/~docky-core/docky/appinfo-cleanup into lp://qastaging/docky

Proposed by Rico Tzschichholz
Status: Merged
Merged at revision: 1642
Proposed branch: lp://qastaging/~docky-core/docky/appinfo-cleanup
Merge into: lp://qastaging/docky
Diff against target: 184 lines (+54/-54)
2 files modified
Docky.Services/Docky.Services/Applications/DesktopItem.cs (+1/-5)
Docky.Services/Docky.Services/SystemService.cs (+53/-49)
To merge this branch: bzr merge lp://qastaging/~docky-core/docky/appinfo-cleanup
Reviewer Review Type Date Requested Status
Robert Dyer (community) Needs Fixing
Chris S. Approve
Review via email: mp+35790@code.qastaging.launchpad.net

Description of the change

Move the AppInfo usage into Docky.Services and clean up it a bit

To post a comment you must log in.
1643. By Rico Tzschichholz

fix GList leak in SystemService

Revision history for this message
Chris S. (cszikszoy) wrote :

Looks good to me. This seems like a code reorganization primarily, I see minimal chance for regressions. Are you sure that this actually fixes a GList leak? How did you test that it doesn't leak anymore?

review: Approve
Revision history for this message
Robert Dyer (psybers) wrote :

Move the File.Exists test into the service's Launch method (so you dont have to check if it exists everywhere before calling Launch, which of course is in exactly 1 case *now* but might not be the case later)

Otherwise I approve.

review: Needs Fixing
1644. By Rico Tzschichholz

move application existence check into system services

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

> Looks good to me. This seems like a code reorganization primarily, I see
> minimal chance for regressions. Are you sure that this actually fixes a GList
> leak? How did you test that it doesn't leak anymore?

I used your LeakTesting environment ;-)
This works for strings, but of course since GLib.File leaks itself it doesnt fix it in this case.

Revision history for this message
Rico Tzschichholz (ricotz) wrote :

> Move the File.Exists test into the service's Launch method (so you dont have
> to check if it exists everywhere before calling Launch, which of course is in
> exactly 1 case *now* but might not be the case later)
>
> Otherwise I approve.

Done

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: