Mesa (master): mesa: Pass the context to query object delete cb to avoid null dereference.

Eric Anholt anholt at kemper.freedesktop.org
Wed Oct 8 02:03:33 UTC 2008


Module: Mesa
Branch: master
Commit: 902727b7e3eb3c2c9bcddf1d55d3c95c73377cf3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=902727b7e3eb3c2c9bcddf1d55d3c95c73377cf3

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Oct  7 18:47:31 2008 -0700

mesa: Pass the context to query object delete cb to avoid null dereference.

---

 src/mesa/main/queryobj.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index 6f084b6..554e0b0 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -545,6 +545,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);
 }




More information about the mesa-commit mailing list