]> git.eshelyaron.com Git - emacs.git/commit
Fix segfault when deleting tree-sitter query (bug#72238)
authorYuan Fu <casouri@gmail.com>
Sun, 21 Jul 2024 23:50:59 +0000 (16:50 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Jul 2024 10:39:14 +0000 (12:39 +0200)
commit953e6b37c3c410e234beef485599d532d1496d8d
tree254e58a849964fdf5ce864c6e9cc7a4e014612f8
parent19a8435ae2880945492b85c301350775e821a9ea
Fix segfault when deleting tree-sitter query (bug#72238)

* src/treesit.c (treesit_delete_query): Only delete query and cursor
when they are non-NULL.

(cherry picked from commit 4868a17396b6796b77285a3608b383aac32aee4f)
src/treesit.c