summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/fx_codec_png.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcodec/codec/fx_codec_png.cpp')
-rw-r--r--core/fxcodec/codec/fx_codec_png.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/codec/fx_codec_png.cpp b/core/fxcodec/codec/fx_codec_png.cpp
index 0b55a97dbe..579c85bf09 100644
--- a/core/fxcodec/codec/fx_codec_png.cpp
+++ b/core/fxcodec/codec/fx_codec_png.cpp
@@ -197,7 +197,7 @@ static void _png_get_row_func(png_structp png_ptr,
}
FXPNG_Context* CCodec_PngModule::Start(void* pModule) {
- FXPNG_Context* p = (FXPNG_Context*)FX_Alloc(uint8_t, sizeof(FXPNG_Context));
+ FXPNG_Context* p = FX_Alloc(FXPNG_Context, 1);
if (!p)
return nullptr;