texture-tower: Use memory management helpers more

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1496
This commit is contained in:
Jonas Ådahl 2020-10-14 21:16:46 +02:00 committed by Georges Basile Stavracas Neto
parent 1cc82cf759
commit 5a58ccbece

View File

@ -126,12 +126,7 @@ meta_texture_tower_set_base_texture (MetaTextureTower *tower,
{
for (i = 1; i < tower->n_levels; i++)
{
if (tower->textures[i] != NULL)
{
cogl_object_unref (tower->textures[i]);
tower->textures[i] = NULL;
}
cogl_clear_object (&tower->textures[i]);
g_clear_object (&tower->fbos[i]);
}