]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 538620fd0c43be6390d490a728dd47d50c0b076f..d5123408c96141dd56849b2e5b29bc0321c53407 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 8bc4192763af971b7f666c5179f5cf12d45a33e3..bc6a98b5078c6495cc7128f08ff4436587820fff 100644 (file)
@@ -1886,6 +1886,7 @@ void Mod_LoadQ3Shaders(void)
                }
                Mem_Free(f);
        }
+       FS_FreeSearch(search);
 }
 
 q3shaderinfo_t *Mod_LookupQ3Shader(const char *name)