mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
previewpane: use RAII for FileExplorerPreviewSettings classes to avoid memory leaks
This commit is contained in:
committed by
Andrey Nekrasov
parent
6c62be1818
commit
f506980e4d
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user