[PATCH weston v3 10/17] compositor-wayland: refactor wayland_backend_config_release
Benoit Gschwind
gschwind at gnu-log.net
Thu May 5 20:45:48 UTC 2016
Rename new_config to config in wayland_backend_config_release function.
Signed-off-by: Benoit Gschwind <gschwind at gnu-log.net>
---
src/main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/main.c b/src/main.c
index 3d643f1..5b8eb80 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1010,15 +1010,15 @@ wayland_output_config_init(struct weston_wayland_backend_output_config *output_c
}
static void
-wayland_backend_config_release(struct weston_wayland_backend_config *new_config) {
+wayland_backend_config_release(struct weston_wayland_backend_config *config) {
int i;
- for (i = 0; i < new_config->num_outputs; ++i) {
- free(new_config->outputs[i].name);
+ for (i = 0; i < config->num_outputs; ++i) {
+ free(config->outputs[i].name);
}
- free(new_config->cursor_theme);
- free(new_config->display_name);
- free(new_config->outputs);
+ free(config->cursor_theme);
+ free(config->display_name);
+ free(config->outputs);
}
/*
--
2.7.3
More information about the wayland-devel
mailing list