summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 2ae0e1221d..c793e07b3a 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -548,8 +548,9 @@ cleanup:
(*ctx->Driver.DeleteTexture)(ctx, ss->Default1DArray);
if (ss->Default2DArray)
(*ctx->Driver.DeleteTexture)(ctx, ss->Default2DArray);
- if (ss)
- _mesa_free(ss);
+
+ _mesa_free(ss);
+
return GL_FALSE;
}