History

Fix SharedNodePointer leak

Atlante45 committed 9 years ago

Commit 61eb93a1 parent 1baff8a4 files · +17 −9Browse files

Showing the changes to libraries/shared/src/GenericThread.cpp (1 of 4 files). Show all

Unified · Split

libraries/shared/src/GenericThread.cpp+2−0
@@ -10,6 +10,7 @@ · 9 unmodified lines
10//10//
11 11
12#include <QDebug>12#include <QDebug>
13#include <QtCore/QCoreApplication>
13 14
14#include "GenericThread.h"15#include "GenericThread.h"
15 16
@@ -73,6 +74,7 @@ void GenericThread::threadRoutine() { · 57 unmodified lines
73 }74 }
74 75
75 while (!_stopThread) {76 while (!_stopThread) {
77 QCoreApplication::processEvents();
76 78
77 // override this function to do whatever your class actually does, return false to exit thread early79 // override this function to do whatever your class actually does, return false to exit thread early
78 if (!process()) {80 if (!process()) {