projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92dc8ff
)
mesa: Pass the context to query object delete cb to avoid null dereference.
author
Eric Anholt
<eric@anholt.net>
Wed, 8 Oct 2008 01:47:31 +0000
(18:47 -0700)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 18 Dec 2008 16:47:49 +0000
(09:47 -0700)
src/mesa/main/queryobj.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/queryobj.c
b/src/mesa/main/queryobj.c
index 2d060300300e529242d30a5f3479a9836dde597b..e3ba7b6ff7444b19579343a2e9b16cb3d86d729b 100644
(file)
--- a/
src/mesa/main/queryobj.c
+++ b/
src/mesa/main/queryobj.c
@@
-546,6
+546,6
@@
delete_queryobj_cb(GLuint id, void *data, void *userData)
void
_mesa_free_query_data(GLcontext *ctx)
{
- _mesa_HashDeleteAll(ctx->Query.QueryObjects, delete_queryobj_cb,
NULL
);
+ _mesa_HashDeleteAll(ctx->Query.QueryObjects, delete_queryobj_cb,
ctx
);
_mesa_DeleteHashTable(ctx->Query.QueryObjects);
}