comparison src/quickfix.c @ 13074:66c014c71dad v8.0.1412

patch 8.0.1412: using free memory using setloclist() commit https://github.com/vim/vim/commit/12237448499aaeb8c4f2be7a1deda60c0f160627 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 19 12:38:52 2017 +0100 patch 8.0.1412: using free memory using setloclist() Problem: Using free memory using setloclist(). (Dominique Pelle) Solution: Mark location list context as still in use when needed. (Yegappan Lakshmanan, closes #2462)
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Dec 2017 12:45:06 +0100
parents 617112037564
children 7c071a3f7f8e
comparison
equal deleted inserted replaced
13073:d790c28d0354 13074:66c014c71dad
5484 { 5484 {
5485 abort = mark_quickfix_ctx(win->w_llist, copyID); 5485 abort = mark_quickfix_ctx(win->w_llist, copyID);
5486 if (abort) 5486 if (abort)
5487 return abort; 5487 return abort;
5488 } 5488 }
5489 if (IS_LL_WINDOW(win) && (win->w_llist_ref->qf_refcount == 1))
5490 {
5491 /* In a location list window and none of the other windows is
5492 * referring to this location list. Mark the location list
5493 * context as still in use.
5494 */
5495 abort = mark_quickfix_ctx(win->w_llist_ref, copyID);
5496 if (abort)
5497 return abort;
5498 }
5489 } 5499 }
5490 5500
5491 return abort; 5501 return abort;
5492 } 5502 }
5493 #endif 5503 #endif