fix a memleak
authorBrian <brian.paul@tungstengraphics.com>
Tue, 25 Dec 2007 00:39:21 +0000 (17:39 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 1 Jan 2008 17:21:21 +0000 (10:21 -0700)
src/mesa/shader/prog_cache.c

index d97e27dd6b57812f2babddcf9935a68ef10d6361..dd0241ef24ef3cf6314b8c49dbdd971581613cbb 100644 (file)
@@ -143,6 +143,7 @@ _mesa_delete_program_cache(GLcontext *ctx, struct gl_program_cache *cache)
 {
    clear_cache(ctx, cache);
    _mesa_free(cache->items);
+   _mesa_free(cache);
 }