mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
st/oxr: Add variable tracking
This commit is contained in:
parent
a9e88f3f20
commit
591e6d3b29
|
@ -12,9 +12,10 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "util/u_debug.h"
|
#include "util/u_var.h"
|
||||||
#include "util/u_time.h"
|
#include "util/u_time.h"
|
||||||
#include "util/u_misc.h"
|
#include "util/u_misc.h"
|
||||||
|
#include "util/u_debug.h"
|
||||||
|
|
||||||
#include "xrt/xrt_compiler.h"
|
#include "xrt/xrt_compiler.h"
|
||||||
#include "xrt/xrt_prober.h"
|
#include "xrt/xrt_prober.h"
|
||||||
|
@ -53,6 +54,8 @@ oxr_instance_destroy(struct oxr_logger *log, struct oxr_handle_base *hb)
|
||||||
{
|
{
|
||||||
struct oxr_instance *inst = (struct oxr_instance *)hb;
|
struct oxr_instance *inst = (struct oxr_instance *)hb;
|
||||||
|
|
||||||
|
u_var_remove_root((void *)inst);
|
||||||
|
|
||||||
oxr_path_destroy_all(log, inst);
|
oxr_path_destroy_all(log, inst);
|
||||||
|
|
||||||
if (inst->path_store != NULL) {
|
if (inst->path_store != NULL) {
|
||||||
|
@ -193,6 +196,8 @@ oxr_instance_create(struct oxr_logger *log,
|
||||||
|
|
||||||
//! @todo check if this (and other creates) failed?
|
//! @todo check if this (and other creates) failed?
|
||||||
|
|
||||||
|
u_var_add_root((void *)inst, "XrInstance", true);
|
||||||
|
|
||||||
*out_instance = inst;
|
*out_instance = inst;
|
||||||
|
|
||||||
return XR_SUCCESS;
|
return XR_SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue