aboutsummaryrefslogtreecommitdiff
path: root/session/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session/session.c')
-rw-r--r--session/session.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/session/session.c b/session/session.c
index 6f6aa2ea..3f4c7910 100644
--- a/session/session.c
+++ b/session/session.c
@@ -30,6 +30,10 @@ struct wlr_session *wlr_session_start(struct wl_display *disp) {
}
void wlr_session_finish(struct wlr_session *session) {
+ if (!session) {
+ return;
+ }
+
session->impl->finish(session);
};
@@ -42,5 +46,9 @@ void wlr_session_close_file(struct wlr_session *session, int fd) {
}
bool wlr_session_change_vt(struct wlr_session *session, unsigned vt) {
+ if (!session) {
+ return false;
+ }
+
return session->impl->change_vt(session, vt);
}