diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-09-19 20:11:17 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-09-19 20:56:10 +0300 |
commit | 25969b330e4dc69f6eb39a487b171ccc07a5df14 (patch) | |
tree | db8a1e7b7f71e85dd6dac1cf41a5d693af619faa /indra/newview/llsnapshotlivepreview.cpp | |
parent | 7e4cdc30f3af701eb34306c124f1ce32f60c14ef (diff) |
viewer#2608 Crash at LLSnapshotLivePreview::getFormattedImage
Diffstat (limited to 'indra/newview/llsnapshotlivepreview.cpp')
-rw-r--r-- | indra/newview/llsnapshotlivepreview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llsnapshotlivepreview.cpp b/indra/newview/llsnapshotlivepreview.cpp index 0d0c025db0..ea95d71b27 100644 --- a/indra/newview/llsnapshotlivepreview.cpp +++ b/indra/newview/llsnapshotlivepreview.cpp @@ -894,7 +894,9 @@ LLPointer<LLImageRaw> LLSnapshotLivePreview::getEncodedImage() else { // Update mFormattedImage if necessary - getFormattedImage(); + lock.unlock(); + getFormattedImage(); // will apply filters to mPreviewImage with a lock + lock.lock(); if (getSnapshotFormat() == LLSnapshotModel::SNAPSHOT_FORMAT_BMP) { // BMP hack : copy instead of decode otherwise decode will crash. |