st/gui: Correctly destroy timekeeping

This commit is contained in:
Jakob Bornecrantz 2019-11-17 20:53:08 +00:00
parent b17f1c2f97
commit 4af9978803

View file

@ -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);
}