mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 09:58:32 +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;
|
p->xdevs[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->timekeeping != NULL) {
|
// Does null checking and sets to null.
|
||||||
time_state_destroy(p->timekeeping);
|
time_state_destroy(&p->timekeeping);
|
||||||
p->timekeeping = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
xrt_prober_destroy(&p->xp);
|
xrt_prober_destroy(&p->xp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue