mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
ffbf7b64ab
commit
690d01367e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user