File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -5702,8 +5702,8 @@ buf_delete_signs(buf)
57025702 signlist_T * next ;
57035703
57045704 /* When deleting the last sign need to redraw the windows to remove the
5705- * sign column. */
5706- if (buf -> b_signlist != NULL )
5705+ * sign column. Not when curwin is NULL (this means we're exiting). */
5706+ if (buf -> b_signlist != NULL && curwin != NULL )
57075707 {
57085708 redraw_buf_later (buf , NOT_VALID );
57095709 changed_cline_bef_curs ();
Original file line number Diff line number Diff line change @@ -734,6 +734,8 @@ static char *(features[]) =
734734
735735static int included_patches [] =
736736{ /* Add new patch number below this line */
737+ /**/
738+ 369 ,
737739/**/
738740 368 ,
739741/**/
Original file line number Diff line number Diff line change @@ -2489,6 +2489,10 @@ win_free_all()
24892489
24902490 while (firstwin != NULL )
24912491 (void )win_free_mem (firstwin , & dummy , NULL );
2492+
2493+ /* No window should be used after this. Set curwin to NULL to crash
2494+ * instead of using freed memory. */
2495+ curwin = NULL ;
24922496}
24932497#endif
24942498
You can’t perform that action at this time.
0 commit comments