Fix calling both view_free_model() and view_free() (#3655)

This commit is contained in:
WillyJL 2024-05-18 19:40:01 +01:00 committed by GitHub
parent 0d456aa550
commit de4b086083
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {