Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustCV/RustCV
/ drop
Method
drop
rustcv-camera/src/backend/macos/mod.rs:265–271 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
263
264
impl Drop for AvfBackend {
265
fn drop(&mut self) {
266
if !self.cam.is_null() {
267
let _ = self.stop();
268
unsafe { sys::avf_camera_free(self.cam) };
269
self.cam = std::ptr::null_mut();
270
}
271
}
272
}
Callers
nothing calls this directly
Calls
1
stop
Method · 0.45
Tested by
no test coverage detected