Feature #990 ยป 0052-gtk4x-Add-fc_crep_row_finalize.patch
client/gui-gtk-5.0/cityrep.c | ||
---|---|---|
G_DEFINE_TYPE(FcCrepRow, fc_crep_row, G_TYPE_OBJECT)
|
||
/**********************************************************************//**
|
||
Finalizing method for FcCrepRow class
|
||
**************************************************************************/
|
||
static void fc_crep_row_finalize(GObject *gobject)
|
||
{
|
||
FcCrepRow *row = FC_CREP_ROW(gobject);
|
||
free(row->columns);
|
||
row->columns = nullptr;
|
||
G_OBJECT_CLASS(fc_crep_row_parent_class)->finalize(gobject);
|
||
}
|
||
/**********************************************************************//**
|
||
Initialization method for FcCrepRow class
|
||
**************************************************************************/
|
||
static void
|
||
fc_crep_row_class_init(FcCrepRowClass *klass)
|
||
{
|
||
GObjectClass *object_class = G_OBJECT_CLASS(klass);
|
||
object_class->finalize = fc_crep_row_finalize;
|
||
}
|
||
/**********************************************************************//**
|
||
... | ... | |
static void
|
||
fc_crep_row_init(FcCrepRow *self)
|
||
{
|
||
self->columns = nullptr;
|
||
}
|
||
/**********************************************************************//**
|