From f2c3ce50fe62b3e16eaa3253f2776fc52f483bf6 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Tue, 17 Mar 2026 08:47:00 +0000 Subject: [PATCH] Protect 'current_tool_bar_style' from GC Currently always set to a built-in symbol. * src/xsettings.c (syms_of_xsettings): Call 'staticpro'. --- src/xsettings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xsettings.c b/src/xsettings.c index 71cd6a9ad6c..1d6bc712292 100644 --- a/src/xsettings.c +++ b/src/xsettings.c @@ -1411,6 +1411,7 @@ If this variable is nil, Emacs ignores system font changes. */); #endif current_tool_bar_style = Qnil; + staticpro (¤t_tool_bar_style); DEFSYM (Qtool_bar_style, "tool-bar-style"); defsubr (&Stool_bar_get_system_style);