mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 14:48:05 +02:00
desktop-shell: Refactor launcher configuration reading to avoid leaking
This commit is contained in:
parent
d3cca9f8d2
commit
62af918cdb
1 changed files with 1 additions and 3 deletions
|
|
@ -1207,15 +1207,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