gfio: fix double alloc of action_group
authorJens Axboe <axboe@kernel.dk>
Wed, 14 Mar 2012 18:49:40 +0000 (19:49 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Mar 2012 18:49:40 +0000 (19:49 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gfio.c

diff --git a/gfio.c b/gfio.c
index cbedaa2d3d7aef5344830e2c127a2223b1f6cdc4..5a0b6d3b636194ae29597ce51517b6343a1d0eb2 100644 (file)
--- a/gfio.c
+++ b/gfio.c
@@ -2606,7 +2606,7 @@ static void set_job_menu_visible(struct gui *ui, int visible)
 static GtkWidget *get_menubar_menu(GtkWidget *window, GtkUIManager *ui_manager,
                                   struct gui *ui)
 {
 static GtkWidget *get_menubar_menu(GtkWidget *window, GtkUIManager *ui_manager,
                                   struct gui *ui)
 {
-       GtkActionGroup *action_group = gtk_action_group_new("Menu");
+       GtkActionGroup *action_group;
        GError *error = 0;
 
        action_group = gtk_action_group_new("Menu");
        GError *error = 0;
 
        action_group = gtk_action_group_new("Menu");