Check that model freed

This commit is contained in:
Andrew Kane
2021-07-26 17:01:37 -07:00
parent 2041988959
commit b4379bc379

View File

@@ -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());
}
}
}