1
0

Fixed freeing old config after updates

This fixes a bug in ee0eb7ccf7 (#47).
This commit is contained in:
Patrick Gaskin
2020-06-23 00:09:05 -04:00
parent ee0eb7ccf7
commit ff434c9669

View File

@@ -152,6 +152,7 @@ static void nm_global_config_replace(nm_config_t *cfg, const char *err) {
return; return;
} }
nm_global_menu_config = cfg;
nm_global_menu_config_items = nm_config_get_menu(cfg, &nm_global_menu_config_n); nm_global_menu_config_items = nm_config_get_menu(cfg, &nm_global_menu_config_n);
if (!nm_global_menu_config_items) if (!nm_global_menu_config_items)
NM_LOG("could not allocate memory"); NM_LOG("could not allocate memory");