summaryrefslogtreecommitdiff
path: root/src/logind-seat.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-05-25 00:58:55 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-21 19:29:44 +0200
commitd2f92cdfd0189491387069da45734816effd8cbd (patch)
tree0b111941e299d73bebf9f916a32f545cc044d80b /src/logind-seat.c
parent14c3baca3eb8b32fc266e46127851585bee5aff2 (diff)
logind: unlink state files when stopping
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r--src/logind-seat.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index 24a5d8f20b..ae89ec9d83 100644
--- a/src/logind-seat.c
+++ b/src/logind-seat.c
@@ -75,11 +75,7 @@ void seat_free(Seat *s) {
hashmap_remove(s->manager->seats, s->id);
- if (s->state_file) {
- unlink(s->state_file);
- free(s->state_file);
- }
-
+ free(s->state_file);
free(s);
}
@@ -323,7 +319,7 @@ int seat_stop(Seat *s) {
r = k;
}
- seat_save(s);
+ unlink(s->state_file);
seat_add_to_gc_queue(s);
return r;