fix(library/flycheck): crash when io_state_stream is destroyed before flycheck_scope

This commit is contained in:
Leonardo de Moura 2014-12-02 12:11:20 -08:00
parent 73429547ba
commit 1b13562591

View file

@ -10,8 +10,8 @@ Author: Leonardo de Moura
namespace lean {
/** \brief Auxiliary object for "inserting" delimiters for flycheck */
class flycheck_scope {
io_state_stream const & m_ios;
bool m_flycheck;
io_state_stream m_ios;
bool m_flycheck;
public:
flycheck_scope(io_state_stream const & ios, char const * kind);
~flycheck_scope();