diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-10-11 09:23:39 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-10-11 09:23:39 +0300 |
commit | af16d43af82ad0d05710c42232332a400614d3ea (patch) | |
tree | 5b4861c9d3ccc84ab95ebafa88340ab649e3a3d2 /src/qreg.h | |
parent | 71bf522231d2998f1fb183f343c2b1f9dbcd3b15 (diff) | |
download | sciteco-af16d43af82ad0d05710c42232332a400614d3ea.tar.gz |
fixed crashes when the Q-Reg stack is non-empty at exit
* Test case: sciteco -e '[a'
[aEX$$ in interactive mode would also crash.
* No longer use a destructor - it was executed after the Q-Reg view was
destroyed.
* Instead, we now explicitly call teco_qreg_stack_clear() in main().
* Added a regression test case.
Diffstat (limited to 'src/qreg.h')
-rw-r--r-- | src/qreg.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -179,6 +179,7 @@ extern teco_qreg_table_t teco_qreg_table_globals; gboolean teco_qreg_stack_push(teco_qreg_t *qreg, GError **error); gboolean teco_qreg_stack_pop(teco_qreg_t *qreg, GError **error); +void teco_qreg_stack_clear(void); typedef enum { TECO_ED_HOOK_ADD = 1, |