diff --git a/YACReader/main.cpp b/YACReader/main.cpp index 90c1545b..3d9a0ec0 100644 --- a/YACReader/main.cpp +++ b/YACReader/main.cpp @@ -165,6 +165,8 @@ int main(int argc, char * argv[]) int ret = app.exec(); + delete mwv; + //Configuration::getConfiguration().save(); YACReader::exitCheck(ret); diff --git a/common/gl/yacreader_flow_gl.cpp b/common/gl/yacreader_flow_gl.cpp index 45c30820..51431661 100644 --- a/common/gl/yacreader_flow_gl.cpp +++ b/common/gl/yacreader_flow_gl.cpp @@ -1341,8 +1341,20 @@ YACReaderPageFlowGL::~YACReaderPageFlowGL() this->killTimer(timerId); //worker->deleteLater(); rawImages.clear(); - for(int i = 0;icontext() != nullptr && this->context()->isValid()) + { + for(int i = 0; i