projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c4245d
)
desktop-shell: Refactor launcher configuration reading to avoid leaking
author
Rob Bradford
<rob@linux.intel.com>
Fri, 26 Jul 2013 15:29:45 +0000
(16:29 +0100)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 30 Jul 2013 18:06:42 +0000
(11:06 -0700)
clients/desktop-shell.c
patch
|
blob
|
history
diff --git
a/clients/desktop-shell.c
b/clients/desktop-shell.c
index
eb550c8
..
ad324ba
100644
(file)
--- 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) {