summaryrefslogtreecommitdiff
path: root/src/logind-seat.c
diff options
context:
space:
mode:
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;