diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-06-07 19:18:15 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-06-07 19:18:15 +0100 |
| commit | 1d4093bcdcdb366340c0ddab7837b68b0b351676 (patch) | |
| tree | f4e5331f9971a0ec2b9a44af9149a9d3a2a0de27 /src/hook_manager.hh | |
| parent | 575e6fe3252c2ed96647f4a564ee16edc7d18468 (diff) | |
Fix memory errors due to sharing the MatchResults in the Hooks struct
A hook execution triggered by another hook execution would change the
shared MatchResults object, which is a wrong behaviour and makes it
point to dead string data.
Diffstat (limited to 'src/hook_manager.hh')
| -rw-r--r-- | src/hook_manager.hh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/hook_manager.hh b/src/hook_manager.hh index 8614b7a5..9cfa4a9b 100644 --- a/src/hook_manager.hh +++ b/src/hook_manager.hh @@ -32,7 +32,6 @@ private: { String group; Regex filter; - MatchResults<const char*> captures; String commands; }; |
