diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/dlist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 6dfb84be9aa..b15826c5a2b 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -10054,8 +10054,12 @@ print_list(struct gl_context *ctx, GLuint list, const char *fname) } dlist = _mesa_lookup_list(ctx, list); - if (!dlist) + if (!dlist) { + if (fname) { + fclose(f); + } return; + } n = dlist->Head; |