]> git.wh0rd.org Git - fontconfig.git/commitdiff
Takashi Iwai <tiwai@suse.de> reviewed by: plam
authorPatrick Lam <plam@MIT.EDU>
Fri, 24 Feb 2006 16:41:34 +0000 (16:41 +0000)
committerPatrick Lam <plam@MIT.EDU>
Fri, 24 Feb 2006 16:41:34 +0000 (16:41 +0000)
Fix double-free on error case.

ChangeLog
src/fcfreetype.c

index 4aec46da10af5a1d604fdac55d4392df592d04ac..e89cdc4216d43602593c41fd3a7258dbaeb7e9c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-02-24  Mike Fabian  <mfabian@suse.de>
+           Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+       
+       * src/fcfreetype.c (GetScriptTags):
+
+       Fix double-free on error case.
+
 2006-02-21  Patrick Lam  <plam@mit.edu>
        * fc-lang/fc-lang.c (scan):
 
index e3c5ef23168c1dae2e68c460e527a1d920d9c06a..5a5ab6d291fb93ac18204f75c0cd1bf00df4ac81 100644 (file)
@@ -2823,6 +2823,7 @@ GetScriptTags(FT_Face face, FT_ULong tabletag, FT_ULong **stags, FT_UShort *scri
 Fail:
     *script_count = 0;
     ftglue_free( memory, *stags );
+    *stags = NULL;
     return error;
 }