Skip to content

Commit

Permalink
refactor: Add Drop trait for FaceTracker2FB (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
curoviyxru authored Jan 31, 2025
1 parent 193387d commit d3333c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions alvr/client_openxr/src/extra_extensions/face_tracking2_fb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,11 @@ impl FaceTracker2FB {
}
}
}

impl Drop for FaceTracker2FB {
fn drop(&mut self) {
unsafe {
(self.ext_fns.destroy_face_tracker2)(self.handle);
}
}
}

0 comments on commit d3333c5

Please sign in to comment.