Commit 51bdaf0b authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer
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>
parent ca51f75f
......@@ -235,6 +235,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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment