Merge pull request 'Fix bug 72811' (#203) from fix/bug-72811 into release/v8.3.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/203
This commit is contained in:
Oleg Korshul
2025-01-29 16:20:19 +00:00
3 changed files with 1 additions and 13 deletions

View File

@ -153,13 +153,6 @@ IMetafileToRenderter::IMetafileToRenderter(IRenderer* pRenderer)
}
IMetafileToRenderter::~IMetafileToRenderter()
{
for (std::vector<std::wstring>::iterator i = m_arTempFiles.begin(); i != m_arTempFiles.end(); i++)
{
std::wstring sPath = *i;
if (NSFile::CFileBinary::Exists(sPath))
NSFile::CFileBinary::Remove(sPath);
}
if (m_pPicker)
{
CMetafileFontPicker* pPicker = (CMetafileFontPicker*)m_pPicker;
@ -234,8 +227,6 @@ std::wstring IMetafileToRenderter::GetImagePath(const std::wstring& sPath)
oFrame.put_Data(NULL);
sImagePath = sTempFile;
}
m_arTempFiles.push_back(sTempFile);
}
RELEASEARRAYOBJECTS(pImageBuffer);

View File

@ -49,7 +49,6 @@ public:
protected:
std::wstring m_sTempDir;
std::vector<std::wstring> m_arTempFiles;
std::wstring m_sThemesDir;
std::wstring m_sMediaDir;

View File

@ -329,9 +329,7 @@ OfficeDrawingFileType CPdfFile::GetType()
}
std::wstring CPdfFile::GetTempDirectory()
{
if (!m_pInternal->pReader)
return std::wstring();
return m_pInternal->pReader->GetTempDirectory();
return m_pInternal->wsTempFolder;
}
void CPdfFile::SetTempDirectory(const std::wstring& wsPath)
{