summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/ImageWrite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Src/ImageWrite.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/ImageWrite.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/Src/ImageWrite.cpp b/Source/Core/VideoCommon/Src/ImageWrite.cpp
index 5bf3f28e45..974efe7474 100644
--- a/Source/Core/VideoCommon/Src/ImageWrite.cpp
+++ b/Source/Core/VideoCommon/Src/ImageWrite.cpp
@@ -24,8 +24,6 @@ TextureToPng
Inputs:
data : This is an array of RGBA with 8 bits per channel. 4 bytes for each pixel.
-data is a newly allocated memory and must have delete[] run on it before returning.
-
row_stride: Determines the amount of bytes per row of pixels.
*/
bool TextureToPng(u8* data, int row_stride, const char* filename, int width, int height, bool saveAlpha)
@@ -109,8 +107,5 @@ finalise:
if (info_ptr != NULL) png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1);
if (png_ptr != NULL) png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
- // Our duty to delete the inputted data.
- delete[] data;
-
return success;
}