From db6b0a91e0c2aebb245ad5d382769889abbf88dd Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 26 Aug 2009 18:28:35 +0100 Subject: [PATCH] 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. --- clutter/clutter-texture.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c index d57f716e2..ab4f99b98 100644 --- a/clutter/clutter-texture.c +++ b/clutter/clutter-texture.c @@ -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);