diff options
| author | Lioncash <mathew1800@gmail.com> | 2013-11-16 16:53:22 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2013-11-16 16:53:22 -0500 |
| commit | c46aabc8533690e998e4fb19564a18f849a991bf (patch) | |
| tree | 8c033cbee439a3c22b857f1b506cdf3ad143b05b /Source/Core/VideoCommon/Src/ImageWrite.cpp | |
| parent | ee32c8b4e9cc621a3cc9b4e8b897204322248f53 (diff) | |
| parent | 4a9c8e6f55312127e49a4202b0a2c0438d1de00f (diff) | |
Merge branch 'master' of https://code.google.com/p/dolphin-emu
Diffstat (limited to 'Source/Core/VideoCommon/Src/ImageWrite.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/ImageWrite.cpp | 5 |
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; } |
