summaryrefslogtreecommitdiff
path: root/src/libsystemd-terminal/sysview-internal.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-08-28 12:25:58 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-08-28 12:45:51 +0200
commitfa9838ddd62ea31f8aea99757916a16d76b31cbc (patch)
tree2bb3f4326147e4758ec788aa321645d86385779f /src/libsystemd-terminal/sysview-internal.h
parent200716a628b70fe723e7d4e09bb2ece10c10bdc0 (diff)
terminal: free sysview-device names on destruction
Don't leak the device-names during device destruction in sysview. Somehow, the device-name is "const char*", so make it "char*" first to avoid warnings when calling free() on it.
Diffstat (limited to 'src/libsystemd-terminal/sysview-internal.h')
-rw-r--r--src/libsystemd-terminal/sysview-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-terminal/sysview-internal.h b/src/libsystemd-terminal/sysview-internal.h
index 5aee9f67d8..9299fabb82 100644
--- a/src/libsystemd-terminal/sysview-internal.h
+++ b/src/libsystemd-terminal/sysview-internal.h
@@ -39,7 +39,7 @@
struct sysview_device {
sysview_seat *seat;
- const char *name;
+ char *name;
unsigned int type;
union {