Cleanup: removed unused function; also murder instead of call for suicide (delete this)

This commit is contained in:
Ingo Weyrich
2020-08-13 13:10:33 +02:00
parent 130fbb8eb2
commit a5c7713042
13 changed files with 29 additions and 173 deletions

View File

@@ -110,7 +110,7 @@ void PreviewHandler::delImage(IImage8* i)
oldImg->getMutex().unlock();
}
i->free();
delete i;
pih->phandler->previewImgMutex.lock();
pih->phandler->previewImg.clear();
pih->phandler->previewImgMutex.unlock();