shaped-texture: Plug region leak

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1002


(cherry picked from commit b30a29f830)
This commit is contained in:
Sebastian Keller 2020-01-11 05:53:11 +00:00 committed by Georges Basile Stavracas Neto
parent 156dd576f4
commit 6b6e724425

View File

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