]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
Add support for user defined messages for [[deprecated]] generalized attribute
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index 5c7d6931323cf702f679016b8fae27b94e72e8bf..9d10cc6e7f5c46077fe3c2869d3b0a1e8381f011 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1,6 +1,7 @@
 /*
  * Copyright (C) 2012
  *     Wolfgang Bumiller
+ *     Dale Weiler 
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy of
  * this software and associated documentation files (the "Software"), to deal in
@@ -341,6 +342,7 @@ ast_value* ast_value_new(lex_ctx ctx, const char *name, int t)
 
     self->setter = NULL;
     self->getter = NULL;
+    self->desc   = NULL;
 
     return self;
 }
@@ -368,6 +370,10 @@ void ast_value_delete(ast_value* self)
     }
     if (self->ir_values)
         mem_d(self->ir_values);
+
+    if (self->desc)
+        mem_d(self->desc);
+
     ast_expression_delete((ast_expression*)self);
     mem_d(self);
 }