Project

General

Profile

Bug #750 » 0020-gtk-Fix-crash-when-closing-last-diplomacy-tab.patch

main - Marko Lindqvist, 07/06/2024 11:40 AM

View differences:

client/gui-gtk-3.22/diplodlg.c
pdialog->dialog = NULL;
}
dialog_list_remove(dialog_list, pdialog);
free(pdialog);
if (dialog_list) {
/* Diplomatic meetings in one main tab. */
......
diplomacy_main_destroy();
}
}
/* Last sub-tab must not be freed before diplomacy_main_destroy() call. */
free(pdialog);
}
/************************************************************************//**
client/gui-gtk-4.0/diplodlg.c
pdialog->dialog = NULL;
}
dialog_list_remove(dialog_list, pdialog);
free(pdialog);
if (dialog_list) {
/* Diplomatic meetings in one main tab. */
......
diplomacy_main_destroy();
}
}
/* Last sub-tab must not be freed before diplomacy_main_destroy() call. */
free(pdialog);
}
/************************************************************************//**
client/gui-gtk-5.0/diplodlg.c
pdialog->dialog = NULL;
}
dialog_list_remove(dialog_list, pdialog);
free(pdialog);
if (dialog_list) {
/* Diplomatic meetings in one main tab. */
......
diplomacy_main_destroy();
}
}
/* Last sub-tab must not be freed before diplomacy_main_destroy() call. */
free(pdialog);
}
/************************************************************************//**
(1-1/4)