Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
codenav: Fix use-after-free in cached completion model
Add a reference when saving the completion model in the old_model var. Otherwise, when the entry field is destroyed the attached model's refcount drops to 0 and it's deallocated, resulting in a use-after-free when attempting to recover it in the next invocation.
- Loading branch information