mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
st/gui: Correctly destroy timekeeping
This commit is contained in:
parent
b17f1c2f97
commit
4af9978803
|
@ -98,10 +98,8 @@ gui_prober_teardown(struct gui_program *p)
|
|||
p->xdevs[i] = NULL;
|
||||
}
|
||||
|
||||
if (p->timekeeping != NULL) {
|
||||
time_state_destroy(p->timekeeping);
|
||||
p->timekeeping = NULL;
|
||||
}
|
||||
// Does null checking and sets to null.
|
||||
time_state_destroy(&p->timekeeping);
|
||||
|
||||
xrt_prober_destroy(&p->xp);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue