gtk_css_style_snapshot_icon_paintable: Fix uninitialized memory access

We were reading the foreground color alpha even when we didn't read it.
This commit is contained in:
Alexander Larsson 2020-02-06 16:23:11 +01:00
parent 7c73f2fb02
commit fcc3c12919

View File

@ -114,10 +114,12 @@ gtk_css_style_snapshot_icon_paintable (GtkCssStyle *style,
is_icon_paintable = GTK_IS_ICON_PAINTABLE (paintable);
if (is_icon_paintable)
gtk_icon_theme_lookup_symbolic_colors (style, &fg, &sc, &wc, &ec);
{
gtk_icon_theme_lookup_symbolic_colors (style, &fg, &sc, &wc, &ec);
if (fg.alpha == 0.0f)
goto transparent;
if (fg.alpha == 0.0f)
goto transparent;
}
if (transform == NULL)
{