Fixed freeing old config after updates
This fixes a bug in ee0eb7ccf7 (#47).
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user