Added a theme_name null guard in the Adwaita/Yaru workaround condition inside create_input_style() so g_str_has_prefix() is only called when theme_name is non-null, while preserving existing behavior for non-null theme names.

Left allocation/free flow unchanged; theme_name is still freed exactly once at the existing cleanup point after the reload block.
This commit is contained in:
2026-02-25 22:52:40 -07:00
parent c37faa1492
commit ce5128e4fb

View File

@@ -870,6 +870,7 @@ create_input_style (InputStyle *style)
/* GTK3 equivalents for adwaita_workaround_rc/cursor_color_rc. */
if (adwaita_workaround_rc[0] != '\0'
&& theme_name
&& (g_str_has_prefix (theme_name, "Adwaita")
|| g_str_has_prefix (theme_name, "Yaru")))
g_string_append (css, "background-image: none;");