Fix a few memory leaks

This commit is contained in:
Timm Bäder 2016-10-20 21:12:36 +02:00
parent c07f395a4f
commit 81c12493ae
3 changed files with 4 additions and 0 deletions

View File

@ -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))

View File

@ -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);

View File

@ -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);