projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd21c4
)
gallium/postprocessing: fix crash at context destruction
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 5 Feb 2015 17:13:20 +0000
(18:13 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Fri, 6 Feb 2015 19:03:06 +0000
(20:03 +0100)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/state_trackers/dri/dri_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/dri_context.c
b/src/gallium/state_trackers/dri/dri_context.c
index 84b88073c0ed71369d47374f30e51244b5724dba..8ac81b7364bce286e4b0bbef40f116b799c582c5 100644
(file)
--- a/
src/gallium/state_trackers/dri/dri_context.c
+++ b/
src/gallium/state_trackers/dri/dri_context.c
@@
-165,6
+165,9
@@
dri_destroy_context(__DRIcontext * cPriv)
hud_destroy(ctx->hud);
}
+ if (ctx->pp)
+ pp_free(ctx->pp);
+
/* No particular reason to wait for command completion before
* destroying a context, but we flush the context here
* to avoid having to add code elsewhere to cope with flushing a
@@
-172,10
+175,6
@@
dri_destroy_context(__DRIcontext * cPriv)
*/
ctx->st->flush(ctx->st, 0, NULL);
ctx->st->destroy(ctx->st);
-
- if (ctx->pp)
- pp_free(ctx->pp);
-
free(ctx);
}