diff --git a/src/graphics/GraphicsLoader.cpp b/src/graphics/GraphicsLoader.cpp index 1863725a7f..e175ba5c75 100644 --- a/src/graphics/GraphicsLoader.cpp +++ b/src/graphics/GraphicsLoader.cpp @@ -17,6 +17,8 @@ #include "GraphicsParams.h" #include "LoaderQueue.h" +#include "callback.h" + #include @@ -206,7 +208,8 @@ Loader::Impl::Impl() Loader::Impl::~Impl() { - resetFile(FileName()); + if (!quitting) + resetFile(FileName()); }