Check that model freed
This commit is contained in:
@@ -196,7 +196,7 @@ impl Model {
|
||||
fn destroy_model(&mut self) {
|
||||
if !self.model.is_null() {
|
||||
unsafe { mf_destroy_model(&mut self.model) };
|
||||
self.model = std::ptr::null_mut();
|
||||
assert!(self.model.is_null());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user