Merge lp://staging/~rodrigo-moya/libubuntuone/progress-downloads-only into lp://staging/libubuntuone
Proposed by
Rodrigo Moya
Status: | Merged |
---|---|
Approved by: | Rodrigo Moya |
Approved revision: | 59 |
Merged at revision: | not available |
Proposed branch: | lp://staging/~rodrigo-moya/libubuntuone/progress-downloads-only |
Merge into: | lp://staging/libubuntuone |
Diff against target: |
69 lines (+34/-4) 1 file modified
libubuntuone/u1-music-store.c (+34/-4) |
To merge this branch: | bzr merge lp://staging/~rodrigo-moya/libubuntuone/progress-downloads-only |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Langridge (community) | Approve | ||
dobey (community) | Needs Fixing | ||
Review via email: mp+20757@code.staging.launchpad.net |
Commit message
Notify downloads finished correctly
Description of the change
Notify downloads finished correctly
To post a comment you must log in.
You should probably g_slist_free (keys) when you're done using it, no?
30 + for (keys = g_hash_ table_get_ keys (current_ downloads) ; in_progress, g_strdup (keys->data), g_strdup (keys->data));
31 + keys != NULL; ) {
32 + g_hash_table_insert (downloads_
33 + keys = g_slist_remove (keys, keys->data);
34 + }
Also, does this for loop work correctly? _get_keys does return a GList and not a GSList, so I suspect that may also cause problems. The documentation also states you shouldn't free the items in the list, as they're owned by the hash table still, and you should only g_list_free() when done using the list returned.
I prefer the keys = _get_keys(); for (l = keys; l != NULL && l->data != NULL; l = l->next) syntax for looping through G[S]Lists though.