summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-07-03 13:20:32 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-07-03 13:20:32 +0000
commitbfb2729f9ef6cba2b1351826ac83932ab0ed6a5f (patch)
tree95108fc819925728241aa218114dde96e97d07cd /src/mesa
parenta6c72b67f6d48d6fdc7f1cf908f026a7db03c666 (diff)
disable a new mem leak check until we're sure it's valid
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/hash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/hash.c b/src/mesa/main/hash.c
index b2cfc7a0ac..2d5bcc3e01 100644
--- a/src/mesa/main/hash.c
+++ b/src/mesa/main/hash.c
@@ -175,9 +175,11 @@ _mesa_HashInsert(struct _mesa_HashTable *table, GLuint key, void *data)
for (entry = table->Table[pos]; entry; entry = entry->Next) {
if (entry->Key == key) {
/* replace entry's data */
+#if 0 /* not sure this check is always valid */
if (entry->Data) {
_mesa_problem(NULL, "Memory leak detected in _mesa_HashInsert");
}
+#endif
entry->Data = data;
_glthread_UNLOCK_MUTEX(table->Mutex);
return;