Skip to content

Commit

Permalink
fix: repeat lock() cause dead lock
Browse files Browse the repository at this point in the history
As title.

Log: fix a dead lock issue.
Bug: https://pms.uniontech.com/bug-view-304471.html
  • Loading branch information
rb-union committed Feb 21, 2025
1 parent 43696d8 commit 3dfbb71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 3rdparty/deepin-pdfium/src/dpdfdoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,12 @@ DPdfDoc::Properies DPdfDoc::proeries()
if (FPDF_GetFileVersion(reinterpret_cast<FPDF_DOCUMENT>(d_func()->m_docHandler), &fileversion)) {
properies.insert("Version", QString("%1.%2").arg(fileversion / 10).arg(fileversion % 10));
}

// Avoid dead lock()
locker.unlock();
properies.insert("Encrypted", isEncrypted());
locker.relock();

properies.insert("Linearized", isLinearized(d_func()->m_filePath));
properies.insert("KeyWords", QString());
properies.insert("Title", QString());
Expand Down

0 comments on commit 3dfbb71

Please sign in to comment.