fix two not freed search handles
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 3 Oct 2009 17:37:04 +0000 (17:37 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 3 Oct 2009 17:37:04 +0000 (17:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9290 d7cf8633-e32d-0410-b094-e92efae38249

image.c
model_shared.c

diff --git a/image.c b/image.c
index 538620f..d512340 100644 (file)
--- a/image.c
+++ b/image.c
@@ -1021,6 +1021,7 @@ void Image_FixTransparentPixels_f(void)
                        Con_Printf("unchanged.\n");
                Mem_Free(data);
        }
+       FS_FreeSearch(search);
 }
 
 qboolean Image_WriteTGABGR_preflipped (const char *filename, int width, int height, const unsigned char *data, unsigned char *buffer)
index 8bc4192..bc6a98b 100644 (file)
@@ -1886,6 +1886,7 @@ void Mod_LoadQ3Shaders(void)
                }
                Mem_Free(f);
        }
+       FS_FreeSearch(search);
 }
 
 q3shaderinfo_t *Mod_LookupQ3Shader(const char *name)