forked from AuroraMiddleware/gtk
Fix a few memory leaks
This commit is contained in:
parent
c07f395a4f
commit
81c12493ae
@ -147,6 +147,7 @@ gsk_render_node_finalize (GskRenderNode *self)
|
||||
self->is_mutable = TRUE;
|
||||
|
||||
g_clear_pointer (&self->surface, cairo_surface_destroy);
|
||||
g_clear_pointer (&self->name, g_free);
|
||||
|
||||
gsk_render_node_iter_init (&iter, self);
|
||||
while (gsk_render_node_iter_next (&iter, NULL))
|
||||
|
@ -65,6 +65,8 @@ gsk_shader_builder_finalize (GObject *gobject)
|
||||
GskShaderBuilder *self = GSK_SHADER_BUILDER (gobject);
|
||||
|
||||
g_free (self->resource_base_path);
|
||||
g_free (self->vertex_preamble);
|
||||
g_free (self->fragment_preamble);
|
||||
|
||||
g_clear_pointer (&self->defines, g_ptr_array_unref);
|
||||
g_clear_pointer (&self->uniforms, g_ptr_array_unref);
|
||||
|
@ -239,6 +239,7 @@ gtk_shortcuts_section_finalize (GObject *object)
|
||||
|
||||
g_clear_pointer (&self->name, g_free);
|
||||
g_clear_pointer (&self->title, g_free);
|
||||
g_clear_pointer (&self->view_name, g_free);
|
||||
g_clear_object (&self->pan_gesture);
|
||||
|
||||
G_OBJECT_CLASS (gtk_shortcuts_section_parent_class)->finalize (object);
|
||||
|
Loading…
Reference in New Issue
Block a user