diff --git a/src/citra_qt/qt_image_interface.cpp b/src/citra_qt/qt_image_interface.cpp index f60162e089..b099ba3956 100644 --- a/src/citra_qt/qt_image_interface.cpp +++ b/src/citra_qt/qt_image_interface.cpp @@ -3,10 +3,15 @@ // Refer to the license.txt file included. #include +#include #include #include "citra_qt/qt_image_interface.h" #include "common/logging/log.h" +QtImageInterface::QtImageInterface() { + QImageReader::setAllocationLimit(0); +} + bool QtImageInterface::DecodePNG(std::vector& dst, u32& width, u32& height, std::span src) { QImage image(QImage::fromData(src.data(), static_cast(src.size()))); diff --git a/src/citra_qt/qt_image_interface.h b/src/citra_qt/qt_image_interface.h index e85f84a437..24652c81ef 100644 --- a/src/citra_qt/qt_image_interface.h +++ b/src/citra_qt/qt_image_interface.h @@ -8,6 +8,7 @@ class QtImageInterface final : public Frontend::ImageInterface { public: + QtImageInterface(); bool DecodePNG(std::vector& dst, u32& width, u32& height, std::span src) override; bool EncodePNG(const std::string& path, u32 width, u32 height, std::span src) override;