diff options
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r-- | src/glx/dri2_glx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 7978bfd..5644f66 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -126,8 +126,7 @@ dri2_destroy_context(struct glx_context *context) driReleaseDrawables(&pcp->base); - if (context->extensions) - free((char *) context->extensions); + free((char *) context->extensions); (*psc->core->destroyContext) (pcp->driContext); @@ -313,8 +312,7 @@ dri2_create_context_attribs(struct glx_screen *base, return &pcp->base; error_exit: - if (pcp != NULL) - free(pcp); + free(pcp); return NULL; } |