summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/postprocess/pp_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_init.c b/src/gallium/auxiliary/postprocess/pp_init.c
index 201a357617a..a49a23d11d4 100644
--- a/src/gallium/auxiliary/postprocess/pp_init.c
+++ b/src/gallium/auxiliary/postprocess/pp_init.c
@@ -169,7 +169,9 @@ pp_free(struct pp_queue_t *ppq)
{
unsigned int i, j;
- pp_free_fbos(ppq);
+ if (ppq) {
+ pp_free_fbos(ppq);
+ }
if (ppq && ppq->p) {
if (ppq->p->pipe && ppq->filters && ppq->shaders) {