Fix for issue 298 on behalf of Steve Herrell
This commit is contained in:
@@ -253,15 +253,18 @@ void Thumbnail::increaseRef ()
|
||||
|
||||
void Thumbnail::decreaseRef ()
|
||||
{
|
||||
Glib::Mutex::Lock lock(mutex);
|
||||
if ( ref != 0 )
|
||||
{
|
||||
--ref;
|
||||
Glib::Mutex::Lock lock(mutex);
|
||||
if ( ref == 0 )
|
||||
{
|
||||
cachemgr->closeThumbnail (this);
|
||||
return;
|
||||
}
|
||||
if ( --ref != 0 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
cachemgr->closeThumbnail (this);
|
||||
}
|
||||
|
||||
void Thumbnail::getThumbnailSize (int &w, int &h) {
|
||||
|
Reference in New Issue
Block a user