Merge branch 'cm/fix-statusicon-leak' into 'gtk-3-24'
statusicon: Fix leak in gtk_status_icon_color_changed See merge request GNOME/gtk!7841
This commit is contained in:
commit
7eeafe292e
@ -1623,13 +1623,15 @@ gtk_status_icon_color_changed (GtkTrayIcon *tray,
|
||||
|
||||
if (name)
|
||||
{
|
||||
GdkRGBA rgba;
|
||||
GdkRGBA *rgba;
|
||||
|
||||
g_object_get (priv->tray_icon, pspec->name, &rgba, NULL);
|
||||
|
||||
rgba.alpha = 1;
|
||||
rgba->alpha = 1;
|
||||
|
||||
gtk_widget_override_symbolic_color (priv->image, name, &rgba);
|
||||
gtk_widget_override_symbolic_color (priv->image, name, rgba);
|
||||
|
||||
gdk_rgba_free (rgba);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user