mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
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:
parent
7c73f2fb02
commit
fcc3c12919
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user