2007-08-11 Matthew Allum <mallum@openedhand.com>

Ported from 0.4 branch.

        * clutter/clutter-texture.c:
        Fix typo in clutter_texture_get_pixbuf (#458, #442?, Neil Roberts).
        Use take_object when getting pixbuf prop to avoid ref leak
This commit is contained in:
Matthew Allum 2007-08-11 19:28:05 +00:00
parent ffbf7b64ab
commit 690d01367e

View File

@ -846,7 +846,7 @@ clutter_texture_get_property (GObject *object,
{
GdkPixbuf *pixb;
pixb = clutter_texture_get_pixbuf (texture);
g_value_set_object (value, pixb);
g_value_take_object (value, pixb);
}
break;
case PROP_USE_TILES:
@ -1190,7 +1190,7 @@ clutter_texture_get_pixbuf (ClutterTexture* texture)
src_h,
pixbuf,
priv->x_tiles[x].pos,
priv->x_tiles[y].pos);
priv->y_tiles[y].pos);
g_object_unref (tmp_pixb);