Project

General

Profile

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

S2_6 - Marko Lindqvist, 07/08/2024 01:30 AM

View differences:

client/gui-gtk-2.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-3.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-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);
}
/*****************************************************************************
(4-4/4)