]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.c
fixing a few leaks - code_write doesn't delete the code object anymore, code_cleanup...
[xonotic/gmqcc.git] / parser.c
index 5d36bfed3ba37dcfa0cfe88e4971338f21ce2b74..6ad55025c3896b9cf9d435985ad9b9a2cb45e92e 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -6016,7 +6016,6 @@ parser_t *parser_create()
         mem_d(parser);
         return NULL;
     }
-    
 
     for (i = 0; i < operator_count; ++i) {
         if (operators[i].id == opid1('=')) {
@@ -6195,6 +6194,8 @@ void parser_cleanup(parser_t *parser)
 
     intrin_intrinsics_destroy(parser);
 
+    code_cleanup(parser->code);
+
     mem_d(parser);
 }