summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-12-01 14:21:14 +0800
committerPo Lu <luangruo@yahoo.com>2022-12-01 14:23:04 +0800
commit4161023a63d68534d3e70931645ac82a88330334 (patch)
treef28aeec71e81bc65e211e280ec191d47fec87433 /.dir-locals.el
parent785fa801596ad7bb9f838cac865f00de29e253d1 (diff)
downloademacs-4161023a63d68534d3e70931645ac82a88330334.tar.gz
Fix crashes and memory leaks during display deinitialization
* .dir-locals.el (c-mode): Add more noise macro names. * src/frame.c (delete_frame): Do not delete terminal if force is Qnoelisp. * src/xterm.c (x_wm_supports): Fix coding style. (x_delete_display): Delete the supported atoms list. (x_delete_terminal): Delete all terminals. Free the scratch cursor GC.
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index f0ab46236f3..fc89dff87f2 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -11,7 +11,8 @@
(vc-prepare-patches-separately . nil)))
(c-mode . ((c-file-style . "GNU")
(c-noise-macro-names . ("INLINE" "NO_INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED"
- "UNINIT" "CALLBACK" "ALIGN_STACK"))
+ "UNINIT" "CALLBACK" "ALIGN_STACK" "ATTRIBUTE_MALLOC"
+ "ATTRIBUTE_DEALLOC_FREE"))
(electric-quote-comment . nil)
(electric-quote-string . nil)
(indent-tabs-mode . t)