mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/wmr: Tidy variable tracking
This commit is contained in:
parent
733d463ec4
commit
16c75e7cc7
|
@ -269,8 +269,15 @@ fail:
|
|||
void
|
||||
wmr_camera_free(struct wmr_camera *cam)
|
||||
{
|
||||
// Stop the camera.
|
||||
wmr_camera_stop(cam);
|
||||
|
||||
// Tidy the variable tracking.
|
||||
u_var_remove_root(cam);
|
||||
u_sink_debug_destroy(&cam->debug_sinks[0]);
|
||||
u_sink_debug_destroy(&cam->debug_sinks[1]);
|
||||
|
||||
|
||||
if (cam->ctx != NULL) {
|
||||
int i;
|
||||
|
||||
|
|
Loading…
Reference in a new issue