[Freeciv-Dev] Re: (PR#5095) client-xaw crashes when opening city dialog
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi!
Unfortunately, I don't know how to make a backtrace. However, I guess I
could solve the issue myself, patching create_city_dialog (in
citydlg.c). There are a couple of calls to fc_malloc, so I tried to
wrap some error checking around that. Funny indeed, fc_malloc does that
already. Well, it works outs for me.
Best wishes,
Diedrich
pdialog=fc_malloc(sizeof(struct city_dialog));
if (pdialog)
{
// code goes here...
pdialog->citizen_labels=
fc_malloc(pdialog->num_citizens_shown * sizeof(Widget));
// some further calls to fc_malloc...
if ( pdialog->citizen_labels && pdialog->citizen_type
&& pdialog->support_unit_pixcomms &&
pdialog->present_unit_pixcomms )
{
// code goes here
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] Re: (PR#5095) client-xaw crashes when opening city dialog (1.14.0),
Diedrich Wolter <=
|
|