wayland_common: fix idle_inhibitor protocol segfault

The pointer is used as a state and wasn't zeroed after seeks.
This commit is contained in:
Rostislav Pehlivanov 2018-02-09 19:01:22 +00:00 committed by Jan Ekström
parent b01623e0d2
commit 6161cfd781
1 changed files with 1 additions and 0 deletions

View File

@ -1198,6 +1198,7 @@ static int set_screensaver_inhibitor(struct vo_wayland_state *wl, int state)
} else {
MP_VERBOSE(wl, "Disabling the idle inhibitor\n");
zwp_idle_inhibitor_v1_destroy(wl->idle_inhibitor);
wl->idle_inhibitor = NULL;
}
return VO_TRUE;
}