mirror of
https://github.com/YACReader/yacreader
synced 2025-07-20 22:14:41 -04:00
fixed threads leak when a comic is loaded: YACReader(render) and YACReaderLibrary(comiccontroller)
This commit is contained in:
@ -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()));
|
||||
|
||||
|
Reference in New Issue
Block a user