mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Library: don't leak folderQueryResultProcessor at exit
FolderQueryResultProcessor has a ConcurrentQueue data member. The leak meant that the thread was not joined before exit.
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
#include "folder_query_result_processor.h"
|
||||
|
||||
#include <future>
|
||||
#include <memory>
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
#include "yacreader_macosx_toolbar.h"
|
||||
@ -416,7 +417,7 @@ private:
|
||||
|
||||
TrayIconController *trayIconController;
|
||||
ComicQueryResultProcesor comicQueryResultProcesor;
|
||||
FolderQueryResultProcessor *folderQueryResultProcessor;
|
||||
std::unique_ptr<FolderQueryResultProcessor> folderQueryResultProcessor;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user