From a2528a7a98ecb1bb5771ac9a4f594ad92f03cf71 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 9 Dec 2010 18:01:27 +0100 Subject: [PATCH] StIcon: fill the structure corretly in _init GSlice already fills with zeros when allocating, but we need to set the shadow_material field appropriately. https://bugzilla.gnome.org/show_bug.cgi?id=634814 --- src/st/st-icon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/st/st-icon.c b/src/st/st-icon.c index 9cf2993a7..7235dc1a8 100644 --- a/src/st/st-icon.c +++ b/src/st/st-icon.c @@ -340,12 +340,11 @@ st_icon_init (StIcon *self) { self->priv = ST_ICON_GET_PRIVATE (self); - self->priv->gicon = NULL; self->priv->icon_size = DEFAULT_ICON_SIZE; self->priv->prop_icon_size = -1; self->priv->icon_type = DEFAULT_ICON_TYPE; - self->priv->icon_texture = COGL_INVALID_HANDLE; + self->priv->shadow_material = COGL_INVALID_HANDLE; self->priv->shadow_width = -1; self->priv->shadow_height = -1; }