Project

General

Profile

Feature #991 ยป 0053-gtk4x-fcmp-Free-URL-from-FcMPRow.patch

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

View differences:

tools/fcmp/mpgui_gtk5.c
const char *type;
const char *subtype;
const char *lic;
const char *URL;
char *URL;
const char *notes;
int type_int;
......
G_DEFINE_TYPE(FcMPRow, fc_mprow, G_TYPE_OBJECT)
/**********************************************************************//**
Finalizing method for FcMPRow class
**************************************************************************/
static void fc_mprow_finalize(GObject *gobject)
{
FcMPRow *row = FC_MPROW(gobject);
free(row->URL);
row->URL = nullptr;
G_OBJECT_CLASS(fc_mprow_parent_class)->finalize(gobject);
}
/**********************************************************************//**
Initialization method for FcMPRow class
**************************************************************************/
static void
fc_mprow_class_init(FcMPRowClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS(klass);
object_class->finalize = fc_mprow_finalize;
}
/**********************************************************************//**
......
static void
fc_mprow_init(FcMPRow *self)
{
self->URL = nullptr;
}
/**********************************************************************//**
    (1-1/1)