]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcname.c
Properly convert static charsets to dynamic charsets.
[fontconfig.git] / src / fcname.c
index 2f6f4e6dbeee6918960091cbeea3cbd30d63d36f..a0a84a394237ceb1f83742a1f8175645ab05f0a0 100644 (file)
@@ -381,19 +381,11 @@ FcObjectUnserialize (FcCache * metadata, void *block_ptr)
        int i;
        char * bp = (char *)block_ptr;
        FcObjectType * bn;
-       FcObjectTypeList * bnl;
 
        bn = malloc (sizeof (const FcObjectType) * (new_biggest + 1));
        if (!bn)
            return 0;
 
-       bnl = malloc (sizeof (FcObjectTypeList));
-       if (!bnl)
-       {
-           free (bn);
-           return 0;
-       }
-
        for (i = 0; i < new_biggest; i++)
        {
            const FcObjectType * t = FcNameGetObjectType(bp);