id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,mlocked 1173,thread leak in PreviewGenerator,jwestfall@…,danielk,"Hi so my backend is currently up to 33 threads. Most of which appear to be the previewgenerator thread which is fired off after each recording. I think the following code is the problem. {{{ void PreviewGenerator::TeardownAll(void) { const QString filename = programInfo.pathname + "".png""; MythTimer t; t.start(); for (bool done = false; !done;) { previewLock.lock(); if (isConnected) emit previewThreadDone(filename, done); else done = true; previewLock.unlock(); usleep(5000); } VERBOSE(VB_PLAYBACK, LOC + ""previewThreadDone took ""<