Correctly reset qf_list_T in qf_free()

This commit is contained in:
Jun T 2016-03-25 00:04:13 +09:00
parent 2e2b5759cf
commit ae686092f8

View File

@ -1886,6 +1886,8 @@ static void qf_free(qf_info_T *qi, int idx)
--qi->qf_lists[idx].qf_count;
}
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_index = 0;
}