diff options
author | U. Artie Eoff <ullysses.a.eoff@intel.com> | 2014-01-17 12:22:50 -0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-01-19 22:07:22 -0800 |
commit | 1a08d1196ac4e8adfb6c90967ebdfe19c19e9310 (patch) | |
tree | abf75073efa0ab6600e4ccece1d59a72d0bd78b1 | |
parent | 107de96ba758228cb5814967d1cf642e042ab070 (diff) | |
download | weston-1a08d1196ac4e8adfb6c90967ebdfe19c19e9310.tar.gz weston-1a08d1196ac4e8adfb6c90967ebdfe19c19e9310.tar.bz2 weston-1a08d1196ac4e8adfb6c90967ebdfe19c19e9310.zip |
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>
-rw-r--r-- | src/compositor-wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index d2d89427..8ddc8bcd 100644 --- a/src/compositor-wayland.c +++ b/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"); |