mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-25 22:10:21 +00:00
Fix calling both view_free_model()
and view_free()
(#3655)
This commit is contained in:
parent
0d456aa550
commit
de4b086083
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue