Project

General

Profile

Feature #990 ยป 0052-gtk4x-Add-fc_crep_row_finalize.patch

Marko Lindqvist, 10/19/2024 03:31 PM

View differences:

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;
}
/**********************************************************************//**
    (1-1/1)