diff options
Diffstat (limited to 'Userland/Libraries/LibGfx/GIFLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/GIFLoader.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Userland/Libraries/LibGfx/GIFLoader.cpp b/Userland/Libraries/LibGfx/GIFLoader.cpp index fa47e9a0f8..ee4f2aa099 100644 --- a/Userland/Libraries/LibGfx/GIFLoader.cpp +++ b/Userland/Libraries/LibGfx/GIFLoader.cpp @@ -655,12 +655,11 @@ void GIFImageDecoderPlugin::set_volatile() } } -bool GIFImageDecoderPlugin::set_nonvolatile() +bool GIFImageDecoderPlugin::set_nonvolatile(bool& was_purged) { - if (!m_context->frame_buffer) { - return true; - } - return m_context->frame_buffer->set_nonvolatile(); + if (!m_context->frame_buffer) + return false; + return m_context->frame_buffer->set_nonvolatile(was_purged); } bool GIFImageDecoderPlugin::sniff() |