fixed threads leak when a comic is loaded: YACReader(render) and YACReaderLibrary(comiccontroller)

This commit is contained in:
Luis Ángel San Martín
2015-05-30 20:32:22 +02:00
parent e05d2e2a99
commit 7f091a666d
3 changed files with 6 additions and 3 deletions

View File

@ -814,6 +814,9 @@ void Render::startLoad()
comic->moveToThread(thread);
connect(comic, SIGNAL(errorOpening()), thread, SLOT(quit()));
connect(comic, SIGNAL(errorOpening(QString)), thread, SLOT(quit()));
connect(comic, SIGNAL(imagesLoaded()), thread, SLOT(quit()));
connect(thread, SIGNAL(started()), comic, SLOT(process()));
connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));