mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.1774: GTK: hang when forced to exit
Problem: GTK: hang when forced to exit. Solution: Do not clean up "mainwin" when really_exiting is set. (Zdenek Dohnal, closes #7042)
This commit is contained in:
parent
1b9129809d
commit
32fbc4f247
@ -4381,11 +4381,14 @@ gui_mch_open(void)
|
|||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Clean up for when exiting Vim.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
gui_mch_exit(int rc UNUSED)
|
gui_mch_exit(int rc UNUSED)
|
||||||
{
|
{
|
||||||
if (gui.mainwin != NULL)
|
// Clean up, unless we don't want to invoke free().
|
||||||
|
if (gui.mainwin != NULL && !really_exiting)
|
||||||
gtk_widget_destroy(gui.mainwin);
|
gtk_widget_destroy(gui.mainwin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1774,
|
||||||
/**/
|
/**/
|
||||||
1773,
|
1773,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user