INNER CODE UNIT · Rust

drop

denialwm/denial · compositor/flutter-engine/src/lib.rs:474

    fn drop(&mut self) {
        if self.data.is_null() {
            return;
        }
        let function = self
            .library
            .table
            .CollectAOTData
            .expect("validated Flutter proc table");
        // SAFETY: this handle was returned by CreateAOTData from the same
        // loaded engine and is collected exactly once here.
        let _ = unsafe { function(self.data) };
        self.data = ptr::null_mut();
    }
}

pub struct RunningEngine {
    handle: sys::FlutterEngine,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…