shaped-texture: Plug region leak

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1002
This commit is contained in:
Sebastian Keller 2020-01-11 06:53:11 +01:00 committed by Georges Basile Stavracas Neto
parent b6c824dd16
commit b30a29f830

View File

@ -239,6 +239,8 @@ meta_shaped_texture_dispose (GObject *object)
meta_shaped_texture_set_mask_texture (stex, NULL); meta_shaped_texture_set_mask_texture (stex, NULL);
meta_shaped_texture_reset_pipelines (stex); meta_shaped_texture_reset_pipelines (stex);
g_clear_pointer (&stex->opaque_region, cairo_region_destroy);
g_clear_pointer (&stex->snippet, cogl_object_unref); g_clear_pointer (&stex->snippet, cogl_object_unref);
G_OBJECT_CLASS (meta_shaped_texture_parent_class)->dispose (object); G_OBJECT_CLASS (meta_shaped_texture_parent_class)->dispose (object);