diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuescript/ast.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuescript/ast.hpp b/src/yuescript/ast.hpp index 162a82e..0636a74 100644 --- a/src/yuescript/ast.hpp +++ b/src/yuescript/ast.hpp | |||
| @@ -238,9 +238,9 @@ public: | |||
| 238 | m_ptr = nullptr; | 238 | m_ptr = nullptr; |
| 239 | } else { | 239 | } else { |
| 240 | assert(accept(node)); | 240 | assert(accept(node)); |
| 241 | node->retain(); | ||
| 241 | if (m_ptr) m_ptr->release(); | 242 | if (m_ptr) m_ptr->release(); |
| 242 | m_ptr = node; | 243 | m_ptr = node; |
| 243 | node->retain(); | ||
| 244 | } | 244 | } |
| 245 | } | 245 | } |
| 246 | 246 | ||
