summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/remap.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-07-27 14:40:08 -0700
committerEric Anholt <[email protected]>2011-08-29 10:10:03 -0700
commit68f8cf72638e974a5bf2ae3e88c2e3539d88e2b6 (patch)
tree2b0ab3376ffadcf7281c6f9d122a5c4297610166 /src/mesa/main/remap.h
parent5401590815b0ef095e7881bbabce233bab07c1e6 (diff)
mesa: Don't check for image->Data when freeing an image's contents.
All driver implementations of FreeTextureImageBuffer already check that Data != NULL and free it. However, this means that we will also free driver storage if the driver storage wasn't in the form of a Data pointer. This was produced by the following semantic patch: @@ expression C; expression T; @@ - if (T->Data) { - C->Driver.FreeTextureImageBuffer(C, T); + C->Driver.FreeTextureImageBuffer(C, T); - } Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/remap.h')
0 files changed, 0 insertions, 0 deletions