Don't free the menu scan reference. Fixes [6b883fb943] thanks to Simon Long.
authorRoy Marples <roy@marples.name>
Fri, 7 Nov 2014 11:18:47 +0000 (11:18 +0000)
committerRoy Marples <roy@marples.name>
Fri, 7 Nov 2014 11:18:47 +0000 (11:18 +0000)
src/dhcpcd-gtk/menu.c

index ac452825a717559739cc3d3a93029c6d3df9c74f..58049ebdc96b2cd1412a4a6f68c78dacb3ade122 100644 (file)
@@ -236,7 +236,6 @@ menu_update_scans(WI_SCAN *wi, DHCPCD_WI_SCAN *scans)
                if (!found) {
                        TAILQ_REMOVE(&wi->menus, wim, next);
                        gtk_widget_destroy(wim->menu);
-                       g_free(wim->scan);
                        g_free(wim);
                        adjust--;
                }