Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up deferred deletes MThreadPool.

In case someone uses QObject::deleteLater() within a QRunnable
passed to MThreadPool, this adds a cleanup of those when done
with the QRunnable.
  • Loading branch information...
commit 0034a85fa007a99992f1aaa3909fa84ce8cfe898 1 parent 16da04d
daniel-kristjansson daniel-kristjansson authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mythtv/libs/libmythbase/mthreadpool.cpp
1  mythtv/libs/libmythbase/mthreadpool.cpp
View
@@ -97,6 +97,7 @@ class MPoolThread : public MThread
GetMythDB()->GetDBManager()->PurgeIdleConnections(false);
QCoreApplication::processEvents();
+ QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);
t.start();
Please sign in to comment.
Something went wrong with that request. Please try again.