Free the name for RTFOtherStatement.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17234 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2003-07-16 10:52:24 +00:00
parent 03607b8f19
commit 307fb69c5c

View file

@ -172,7 +172,7 @@ rtfCharset: RTFansi { $$ = 1; }
| RTFpc { $$ = 3; }
| RTFpca { $$ = 4; }
/* If it's an unknown character set, assume ansi. */
| RTFOtherStatement { $$ = 1; }
| RTFOtherStatement { $$ = 1; free((void*)$1.name); }
;
rtfIngredients: /* empty */
@ -352,7 +352,8 @@ rtfStatement: RTFfont { int font;
| RTFplain { GSRTFdefaultCharacterStyle(CTXT); }
| RTFparagraph { GSRTFparagraph(CTXT); }
| RTFrow { GSRTFparagraph(CTXT); }
| RTFOtherStatement { GSRTFgenericRTFcommand(CTXT, $1); }
| RTFOtherStatement { GSRTFgenericRTFcommand(CTXT, $1);
free((void*)$1.name); }
;
/*