Project

General

Profile

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

S3_2 - 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);
}
/************************************************************************//**
(2-2/4)