Merge lp:~ken-vandine/telepathy-indicator/lp_1046360 into lp:telepathy-indicator
Proposed by
Ken VanDine
Status: | Merged |
---|---|
Approved by: | Ken VanDine |
Approved revision: | 66 |
Merged at revision: | 62 |
Proposed branch: | lp:~ken-vandine/telepathy-indicator/lp_1046360 |
Merge into: | lp:telepathy-indicator |
Diff against target: |
148 lines (+91/-12) 1 file modified
src/indicator-approver.c (+91/-12) |
To merge this branch: | bzr merge lp:~ken-vandine/telepathy-indicator/lp_1046360 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lars Karlitski (community) | Approve | ||
Review via email: mp+129039@code.launchpad.net |
Description of the change
don't register with messaging menu unless we have enabled IM accounts
To post a comment you must log in.
Works, but has a memory leak in check_enabled_ accounts:
tp_account_ manager_ dup_valid_ accounts returns a list of reffed TpAccounts. Instead of using g_list_free, the returned list should be freed with
g_list_free_full (account_list, g_object_unref)
to unref the contained accounts.
Also, the `g_list_free (account_ service_ list)` can be removed, it doesn't free anything (account_ service_ list is NULL after the loop has run through).
Thanks!