]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Fix a crash... if (!x) delete(x) yeah right...
authorWolfgang Bumiller <blub@speed.at>
Tue, 15 Jan 2013 09:50:14 +0000 (10:50 +0100)
committerWolfgang Bumiller <blub@speed.at>
Tue, 15 Jan 2013 09:50:14 +0000 (10:50 +0100)
parser.c

index 44ab18f579aa08328aefcd7f13ce45c8d66db1e8..a972ea5fe1237fddcc44cd98843747aab161d5eb 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4817,7 +4817,6 @@ static ast_value *parse_typename(parser_t *parser, ast_value **storebase, ast_va
         if (!var) {
             if (name)
                 mem_d((void*)name);
-            ast_delete(var);
             return NULL;
         }
     }