compositor-wayland: don't free unallocated memory

Assigning a string constant (i.e. memory that we didn't allocate)
to a char* pointer and then freeing that pointer is bad news.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
dev
U. Artie Eoff 11 years ago committed by Kristian Høgsberg
parent 107de96ba7
commit 1a08d1196a
  1. 2
      src/compositor-wayland.c

@ -879,7 +879,7 @@ wayland_output_create_for_config(struct wayland_compositor *c,
name = str;
}
if (!name)
name = WINDOW_TITLE;
name = strdup(WINDOW_TITLE);
weston_config_section_get_string(config_section,
"mode", &mode, "1024x600");

Loading…
Cancel
Save