mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
Correctly reset qf_list_T in qf_free()
This commit is contained in:
@@ -1886,6 +1886,8 @@ static void qf_free(qf_info_T *qi, int idx)
|
|||||||
--qi->qf_lists[idx].qf_count;
|
--qi->qf_lists[idx].qf_count;
|
||||||
}
|
}
|
||||||
xfree(qi->qf_lists[idx].qf_title);
|
xfree(qi->qf_lists[idx].qf_title);
|
||||||
|
qi->qf_lists[idx].qf_start = NULL;
|
||||||
|
qi->qf_lists[idx].qf_ptr = NULL;
|
||||||
qi->qf_lists[idx].qf_title = NULL;
|
qi->qf_lists[idx].qf_title = NULL;
|
||||||
qi->qf_lists[idx].qf_index = 0;
|
qi->qf_lists[idx].qf_index = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user