Permalink
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...
1 parent 16da04d commit 0034a85fa007a99992f1aaa3909fa84ce8cfe898 @daniel-kristjansson daniel-kristjansson committed Jun 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mythtv/libs/libmythbase/mthreadpool.cpp
@@ -97,6 +97,7 @@ class MPoolThread : public MThread
GetMythDB()->GetDBManager()->PurgeIdleConnections(false);
QCoreApplication::processEvents();
+ QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);
t.start();

0 comments on commit 0034a85

Please sign in to comment.