win_free_lsize(wp);
if (aucmd_win != NULL)
win_free_lsize(aucmd_win);
+#ifdef FEAT_TEXT_PROP
+ // global popup windows
+ for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
+ win_free_lsize(wp);
+ // tab-local popup windows
+ FOR_ALL_TABPAGES(tp)
+ for (wp = tp->tp_first_popupwin; wp != NULL; wp = wp->w_next)
+ win_free_lsize(wp);
+#endif
new_ScreenLines = LALLOC_MULT(schar_T, (Rows + 1) * Columns);
vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T *) * MAX_MCO);
if (aucmd_win != NULL && aucmd_win->w_lines == NULL
&& win_alloc_lines(aucmd_win) == FAIL)
outofmem = TRUE;
+#ifdef FEAT_TEXT_PROP
+ // global popup windows
+ for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
+ if (win_alloc_lines(wp) == FAIL)
+ {
+ outofmem = TRUE;
+ goto give_up;
+ }
+ // tab-local popup windows
+ FOR_ALL_TABPAGES(tp)
+ for (wp = tp->tp_first_popupwin; wp != NULL; wp = wp->w_next)
+ if (win_alloc_lines(wp) == FAIL)
+ {
+ outofmem = TRUE;
+ goto give_up;
+ }
+#endif
+
give_up:
for (i = 0; i < p_mco; ++i)