summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/misc2.c b/src/misc2.c
index fb873fb4a..328bdf216 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -952,6 +952,7 @@ free_all_mem()
{
buf_T *buf, *nextbuf;
static int entered = FALSE;
+ win_T *win;
/* When we cause a crash here it is caught and Vim tries to exit cleanly.
* Don't try freeing everything again. */
@@ -1027,7 +1028,10 @@ free_all_mem()
init_history();
#ifdef FEAT_QUICKFIX
- qf_free_all();
+ qf_free_all(NULL);
+ /* Free all location lists */
+ FOR_ALL_WINDOWS(win)
+ qf_free_all(win);
#endif
/* Close all script inputs. */