mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
texture-tower: Use memory management helpers more
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1496
This commit is contained in:
parent
1cc82cf759
commit
5a58ccbece
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user