Prevents thumbnail race condition, from Floessie in #3304 and fixes #3384

This commit is contained in:
Morgan Hardwood
2016-08-06 21:24:36 +02:00
parent 1339cbe67a
commit 14b5bf1386

View File

@@ -499,6 +499,8 @@ void Thumbnail::decreaseRef ()
void Thumbnail::getThumbnailSize (int &w, int &h, const rtengine::procparams::ProcParams *pparams)
{
MyMutex::MyLock lock(mutex);
int tw_ = tw;
int th_ = th;
float imgRatio_ = imgRatio;