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:
Neil Roberts 2009-08-26 18:28:35 +01:00
parent bad7782ab4
commit db6b0a91e0

View File

@ -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);