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 cbedaa2..5a0b6d3 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)
 {
-       GtkActionGroup *action_group = gtk_action_group_new("Menu");
+       GtkActionGroup *action_group;
        GError *error = 0;
 
        action_group = gtk_action_group_new("Menu");