]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
ir_instr_delete_quick needs to clear _m_ops
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 1 Feb 2015 10:49:46 +0000 (11:49 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 1 Feb 2015 10:49:46 +0000 (11:49 +0100)
ir.cpp

diff --git a/ir.cpp b/ir.cpp
index ba4ed649b7eea9eebe41f5d3b36260696c798409..044b834bf0e8a0d1a9c745f016015d16e65e0f96 100644 (file)
--- a/ir.cpp
+++ b/ir.cpp
@@ -792,6 +792,9 @@ static void ir_instr_delete_quick(ir_instr *self)
 {
     self->m_phi.clear();
     self->m_params.clear();
+    self->_m_ops[0] = nullptr;
+    self->_m_ops[1] = nullptr;
+    self->_m_ops[2] = nullptr;
     delete self;
 }