]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/patch.c
Merge commit '515673c08f8718a237e90c2130a1f5294f966d6a'
[xonotic/netradiant.git] / tools / quake3 / q3map2 / patch.c
index 58b8ea207940edf63e281570eeecced407e05187..b977dc7dc4bfab4c02436a503906408e8cff3a02 100644 (file)
@@ -227,7 +227,6 @@ void ParsePatch( qboolean onlyLights )
        float                   longestCurve;
        int                             maxIterations;
        
-       
        MatchToken( "{" );
        
        /* get texture */
@@ -267,8 +266,10 @@ void ParsePatch( qboolean onlyLights )
        GetToken(qtrue);
        if (g_bBrushPrimit!=BPRIMIT_OLDBRUSHES && strcmp(token,"}"))
        {
-               // NOTE: we leak that!
                ep = ParseEPair();
+               free(ep->key);
+               free(ep->value);
+               free(ep);
        }
        else
                UnGetToken();