mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 06:28:01 +02:00
desktop-shell: Refactor launcher configuration reading to avoid leaking
This commit is contained in:
parent
5c4245d70d
commit
09252d4b5e
1 changed files with 1 additions and 3 deletions
|
|
@ -1205,15 +1205,13 @@ panel_add_launchers(struct panel *panel, struct desktop *desktop)
|
|||
|
||||
if (icon != NULL && path != NULL) {
|
||||
panel_add_launcher(panel, icon, path);
|
||||
count++;
|
||||
} else {
|
||||
fprintf(stderr, "invalid launcher section\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
free(icon);
|
||||
free(path);
|
||||
|
||||
count++;
|
||||
}
|
||||
|
||||
if (count == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue