[glx-texture-pixmap] Unref a cogl texture handle.

According to clutter_texture_set_cogl_texture you should unref the handle as
the texture takes its own.

Signed-off-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Garry Bodsworth 2009-06-08 08:46:33 +01:00 committed by Robert Bragg
parent c968b06f15
commit 04dc4106e5

View File

@ -377,6 +377,7 @@ create_cogl_texture (ClutterTexture *texture,
priv->using_rectangle = using_rectangle; priv->using_rectangle = using_rectangle;
clutter_texture_set_cogl_texture (texture, handle); clutter_texture_set_cogl_texture (texture, handle);
cogl_texture_unref(handle);
return TRUE; return TRUE;
} }