Merge lp:~bratsche/appmenu-gtk/rebuild-ids-destruction into lp:appmenu-gtk/0.4

Proposed by Cody Russell
Status: Merged
Merged at revision: 90
Proposed branch: lp:~bratsche/appmenu-gtk/rebuild-ids-destruction
Merge into: lp:appmenu-gtk/0.4
Diff against target: 23 lines (+4/-4)
1 file modified
src/bridge.c (+4/-4)
To merge this branch: bzr merge lp:~bratsche/appmenu-gtk/rebuild-ids-destruction
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+34271@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

  review approve

This looks fine, but I'm curious:

I'm guessing the bug was caused by rebuild_ids not existing somewhere,
do you think we should still check for it's existence where it's used?

On Wed, 2010-09-01 at 03:24 +0000, Cody Russell wrote:
> Cody Russell has proposed merging lp:~bratsche/appmenu-gtk/rebuild-ids-destruction into lp:appmenu-gtk.
>
> Requested reviews:
> Canonical Desktop Experience Team (canonical-dx-team)
> Related bugs:
> #624607 gnome-display-properties crashed with SIGFPE in g_hash_table_lookup()
> https://bugs.launchpad.net/bugs/624607
>
> differences between files attachment (review-diff.txt)
> === modified file 'src/bridge.c'
> --- src/bridge.c 2010-08-30 21:31:56 +0000
> +++ src/bridge.c 2010-09-01 03:24:45 +0000
> @@ -970,10 +970,6 @@
> data->widget);
>
> g_hash_table_remove (rebuild_ids, data->widget);
> - if (g_hash_table_size (rebuild_ids) == 0)
> - {
> - g_hash_table_destroy (rebuild_ids);
> - }
> }
>
> g_free (data);
> @@ -1296,4 +1292,8 @@
> G_MODULE_EXPORT void
> menu_proxy_module_unload (UbuntuMenuProxyModule *module)
> {
> + if (rebuild_ids)
> + {
> + g_hash_table_destroy (rebuild_ids);
> + }
> }
>

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/bridge.c'
2--- src/bridge.c 2010-08-30 21:31:56 +0000
3+++ src/bridge.c 2010-09-01 03:24:45 +0000
4@@ -970,10 +970,6 @@
5 data->widget);
6
7 g_hash_table_remove (rebuild_ids, data->widget);
8- if (g_hash_table_size (rebuild_ids) == 0)
9- {
10- g_hash_table_destroy (rebuild_ids);
11- }
12 }
13
14 g_free (data);
15@@ -1296,4 +1292,8 @@
16 G_MODULE_EXPORT void
17 menu_proxy_module_unload (UbuntuMenuProxyModule *module)
18 {
19+ if (rebuild_ids)
20+ {
21+ g_hash_table_destroy (rebuild_ids);
22+ }
23 }

Subscribers

People subscribed via source and target branches