]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Merge branch 'master' of github.com:graphitemaster/gmqcc
authorDale Weiler <weilercdale@gmail.com>
Sun, 26 Nov 2017 22:48:13 +0000 (17:48 -0500)
committerDale Weiler <weilercdale@gmail.com>
Sun, 26 Nov 2017 22:48:13 +0000 (17:48 -0500)
ir.cpp
parser.cpp
util.cpp

diff --git a/ir.cpp b/ir.cpp
index d94558e156a4a4f91a3332bdca215b52017a6db0..facbc33fccaeaaf9829a4fcf72fd18a2e409f6d7 100644 (file)
--- a/ir.cpp
+++ b/ir.cpp
@@ -1474,6 +1474,7 @@ ir_instr* ir_block_create_call(ir_block *self, lex_ctx_t ctx, const char *label,
         !ir_instr_op(in, 1, func, false))
     {
         delete in;
+        delete out;
         return nullptr;
     }
     self->m_instr.push_back(in);
index 63e49d056969f4b3360f697050722c67241f34a9..4f7ea699c5039537dcb9390c7180ca1127554986 100644 (file)
@@ -3163,6 +3163,7 @@ static bool parse_switch_go(parser_t *parser, ast_block *block, ast_expression *
             }
             if (!OPTS_FLAG(RELAXED_SWITCH)) {
                 if (!ast_istype(swcase.m_value, ast_value)) { /* || ((ast_value*)swcase.m_value)->m_cvq != CV_CONST) { */
+                    delete switchnode;
                     parseerror(parser, "case on non-constant values need to be explicitly enabled via -frelaxed-switch");
                     ast_unref(operand);
                     return false;
index ead50dda137a18e3e5ae67b85601a34d9cf867f7..fa18d04c9857ceba78c7cbfbd3e1ad6e09e6d24b 100644 (file)
--- a/util.cpp
+++ b/util.cpp
@@ -670,6 +670,7 @@ bool util_isatty(FILE *file) {
 }
 #else
 bool util_isatty(FILE *file) {
+    (void)file;
     return false;
 }
 #endif