Skip to content
Snippets Groups Projects
Commit c27aae4f authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer Committed by Eric Engestrom
Browse files

st/mesa: set compressed_data to NULL when freed


Reported-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Fixes: b6db703e ("st/mesa: make texture views inherit compressed_data storage")
Reviewed-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Tested-by: default avatarDave Airlie <airlied@redhat.com>
Part-of: <mesa/mesa!5821>
(cherry picked from commit 51bdaf0b)
parent aa9b4e30
No related branches found
No related tags found
Loading
......@@ -4072,7 +4072,7 @@
"description": "st/mesa: set compressed_data to NULL when freed",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "b6db703e0f007fbcf4389ec607ae4c3e8fc9ee0d"
},
......
......@@ -219,6 +219,7 @@ st_FreeTextureImageBuffer(struct gl_context *ctx,
pipe_reference(&stImage->compressed_data->reference, NULL)) {
free(stImage->compressed_data->ptr);
free(stImage->compressed_data);
stImage->compressed_data = NULL;
}
/* if the texture image is being deallocated, the structure of the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment