mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
Take a reference to the material in clutter_texture_set_cogl_material
The material is unref'd in clutter_texture_finalize and the documentation explicitly states that the function will take a ref so it really should.
This commit is contained in:
parent
bad7782ab4
commit
db6b0a91e0
@ -1312,6 +1312,8 @@ clutter_texture_set_cogl_material (ClutterTexture *texture,
|
||||
|
||||
g_return_if_fail (CLUTTER_IS_TEXTURE (texture));
|
||||
|
||||
cogl_handle_ref (cogl_material);
|
||||
|
||||
/* This */
|
||||
if (texture->priv->material)
|
||||
cogl_handle_unref (texture->priv->material);
|
||||
|
Loading…
Reference in New Issue
Block a user