Bug #750 » 0020-gtk-Fix-crash-when-closing-last-diplomacy-tab.patch
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);
|
||
}
|
||
/************************************************************************//**
|