Don't forget to chain up to parent finalize
This can give a small memory leak and can prevent the necessary closing of resources.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
866cdabe9c
commit
4d05ffb9d3
@@ -670,6 +670,8 @@ gcal_manager_finalize (GObject *object)
|
||||
|
||||
g_clear_pointer (&self->clients, g_hash_table_destroy);
|
||||
|
||||
G_OBJECT_CLASS (gcal_manager_parent_class)->finalize (object);
|
||||
|
||||
GCAL_EXIT;
|
||||
}
|
||||
|
||||
|
||||
@@ -1161,6 +1161,8 @@ gcal_week_header_finalize (GObject *object)
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (self->weather_infos); i++)
|
||||
wid_clear (&self->weather_infos[i]);
|
||||
|
||||
G_OBJECT_CLASS (gcal_week_header_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user