Memory leak in XML parsing of matrices (thanks Owen)

This commit is contained in:
Keith Packard 2002-08-20 23:17:03 +00:00
parent fa244f3d88
commit f4fe447f49
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/* /*
* $XFree86: xc/lib/fontconfig/src/fcxml.c,v 1.18 2002/08/11 18:10:42 keithp Exp $ * $XFree86: xc/lib/fontconfig/src/fcxml.c,v 1.19 2002/08/19 19:32:05 keithp Exp $
* *
* Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
* *
@ -996,6 +996,7 @@ FcParseMatrix (FcConfigParse *parse)
case m_yy: m.yy = v; break; case m_yy: m.yy = v; break;
default: break; default: break;
} }
FcVStackDestroy (vstack);
matrix_state--; matrix_state--;
} }
if (matrix_state != m_done) if (matrix_state != m_done)