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) {