Mesa (master): mesa: added memory-related comment in save_error()

Brian Paul brianp at kemper.freedesktop.org
Fri Nov 29 13:44:51 UTC 2013


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

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Nov 29 06:40:35 2013 -0700

mesa: added memory-related comment in save_error()

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/dlist.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 74800da..83c56a7 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -6845,6 +6845,10 @@ save_error(struct gl_context *ctx, GLenum error, const char *s)
    if (n) {
       n[1].e = error;
       n[2].data = (void *) s;
+      /* note: the data/string here doesn't have to be freed in
+       * _mesa_delete_list() since the string is never dynamically
+       * allocated.
+       */
    }
 }
 




More information about the mesa-commit mailing list