summaryrefslogtreecommitdiff
path: root/clients/desktop-shell.c
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2013-07-26 16:29:45 +0100
committerKristian Høgsberg <krh@bitplanet.net>2013-07-30 11:06:42 -0700
commit09252d4b5eecf6068ce45039299dd904d0e6389e (patch)
tree97da82a031b149a37e8be1fc7f744fdba59d5e79 /clients/desktop-shell.c
parent5c4245d70de33495390daabc3e2c272a6e73b100 (diff)
downloadweston-09252d4b5eecf6068ce45039299dd904d0e6389e.tar.gz
desktop-shell: Refactor launcher configuration reading to avoid leaking
Diffstat (limited to 'clients/desktop-shell.c')
-rw-r--r--clients/desktop-shell.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
index eb550c8d..ad324ba7 100644
--- a/clients/desktop-shell.c
+++ b/clients/desktop-shell.c
@@ -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) {