commit | 09252d4b5eecf6068ce45039299dd904d0e6389e | [log] [tgz] |
---|---|---|
author | Rob Bradford <rob@linux.intel.com> | Fri Jul 26 16:29:45 2013 +0100 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Tue Jul 30 11:06:42 2013 -0700 |
tree | 97da82a031b149a37e8be1fc7f744fdba59d5e79 | |
parent | 5c4245d70de33495390daabc3e2c272a6e73b100 [diff] [blame] |
desktop-shell: Refactor launcher configuration reading to avoid leaking
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index eb550c8..ad324ba 100644 --- a/clients/desktop-shell.c +++ b/clients/desktop-shell.c
@@ -1205,15 +1205,13 @@ 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) {