Author: muggenhor
Date: Fri May  2 22:37:23 2008
New Revision: 4888

URL: http://svn.gna.org/viewcvs/warzone?rev=4888&view=rev
Log:
Fix several memory leaks in level_parser.y that occur when parsing errors occur:
 * In case of a semantic error (i.e. we detect something is wrong in a parsing 
rule) deallocate the resources of our current tokens __before__ calling YYABORT
 * Only add a LEVEL_DATASET* to the psLevels list when we've fully and 
succesfully finished parsing of the corresponding level_entry
 * Add a bison "destructor" that handles destruction of tokens on the parsing 
stack when a syntax error occurs (i.e. the current tokens cannot be matched to 
any parsing rule)

Modified:
    trunk/src/level_parser.y


_______________________________________________
Warzone-commits mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-commits

Reply via email to