From: Brian Paul Date: Fri, 29 Nov 2013 13:40:35 +0000 (-0700) Subject: mesa: added memory-related comment in save_error() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90d85aa16c12e072bdc03d1c552c199b5e3c64b9;p=mesa.git mesa: added memory-related comment in save_error() Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 74800da9ef1..83c56a7e728 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. + */ } }