previewpane: use RAII for FileExplorerPreviewSettings classes to avoid memory leaks

This commit is contained in:
yuyoyuppe
2020-10-20 15:01:45 +03:00
committed by Andrey Nekrasov
parent 6c62be1818
commit f506980e4d
7 changed files with 43 additions and 54 deletions

View File

@@ -21,7 +21,7 @@ private:
std::wstring m_moduleName;
//contains the non localized key of the powertoy
std::wstring app_key;
std::vector<FileExplorerPreviewSettings*> m_fileExplorerModules;
std::vector<std::unique_ptr<FileExplorerPreviewSettings>> m_fileExplorerModules;
// Function to check if the registry states need to be updated
bool is_registry_update_required();