mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
Fix calling both view_free_model() and view_free() (#3655)
This commit is contained in:
@@ -97,10 +97,11 @@ void view_free_model(View* view) {
|
||||
furi_mutex_free(model->mutex);
|
||||
free(model->data);
|
||||
free(model);
|
||||
view->model = NULL;
|
||||
} else {
|
||||
furi_crash();
|
||||
}
|
||||
view->model = NULL;
|
||||
view->model_type = ViewModelTypeNone;
|
||||
}
|
||||
|
||||
void* view_get_model(View* view) {
|
||||
|
||||
Reference in New Issue
Block a user