Changeset 90ba06c in mainline


Ignore:
Timestamp:
2024-02-22T16:59:56Z (2 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
ee3b28a9, f2cb80a
Parents:
95e2967
Message:

Display configuration needs to properly close UI on error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/display-cfg/main.c

    r95e2967 r90ba06c  
    7878
    7979        rc = display_cfg_open(dcfg, DISPCFG_DEFAULT);
    80         if (rc != EOK)
     80        if (rc != EOK) {
     81                display_cfg_destroy(dcfg);
     82                printf("Error opening display configuration service '%s'.\n",
     83                    DISPCFG_DEFAULT);
    8184                return 1;
     85        }
    8286
    8387        rc = display_cfg_populate(dcfg);
    84         if (rc != EOK)
     88        if (rc != EOK) {
     89                display_cfg_destroy(dcfg);
     90                printf("Error reading display configuration.\n");
    8591                return 1;
     92        }
    8693
    8794        ui_run(dcfg->ui);
Note: See TracChangeset for help on using the changeset viewer.