[StShadowTexture] Fix invalid unref of CoglHandle
This code appeared to treat the return value of clutter_texture_get_cogl_texture as having a new reference, but in fact it doesn't. https://bugzilla.gnome.org/show_bug.cgi?id=608119
This commit is contained in:
parent
4006d7d57f
commit
2aa305b51d
@ -86,7 +86,6 @@ st_shadow_texture_create_shadow (StShadowTexture *st,
|
|||||||
|
|
||||||
cogl_texture_get_data (texture, COGL_PIXEL_FORMAT_A_8,
|
cogl_texture_get_data (texture, COGL_PIXEL_FORMAT_A_8,
|
||||||
rowstride_in, pixels_in);
|
rowstride_in, pixels_in);
|
||||||
cogl_texture_unref (texture);
|
|
||||||
|
|
||||||
if ((guint) st->blur_radius == 0)
|
if ((guint) st->blur_radius == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user