- Fix locking the game container while updating the icon data

This commit is contained in:
Maschell 2020-02-21 21:37:12 +01:00
parent 7ec159152c
commit 6c0c6387b6

View File

@ -375,11 +375,14 @@ void GuiIconGrid::OnGameTitleUpdated(gameInfo * info) {
break; break;
} }
} }
containerMutex.unlock();
// keep the lock to delay the draw() until the image data is ready.
if(container != NULL) { if(container != NULL) {
container->updateImageData(); container->updateImageData();
} }
containerMutex.unlock();
bUpdatePositions = true; bUpdatePositions = true;
} }