diff options
author | saturneric <[email protected]> | 2023-12-16 05:41:38 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-16 05:41:38 +0000 |
commit | d6311ece3fa3e8e976befa7e253d453398046c7c (patch) | |
tree | a23183865059d06ee7796214d9747b8bf334016c /src/core/function/GlobalSettingStation.cpp | |
parent | fix: clean up envirnoment when app exits (diff) | |
download | GpgFrontend-d6311ece3fa3e8e976befa7e253d453398046c7c.tar.gz GpgFrontend-d6311ece3fa3e8e976befa7e253d453398046c7c.zip |
fix: slove memory problem of gpg context
Diffstat (limited to 'src/core/function/GlobalSettingStation.cpp')
-rw-r--r-- | src/core/function/GlobalSettingStation.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/function/GlobalSettingStation.cpp b/src/core/function/GlobalSettingStation.cpp index d1c1068e..b54fbfd3 100644 --- a/src/core/function/GlobalSettingStation.cpp +++ b/src/core/function/GlobalSettingStation.cpp @@ -36,15 +36,13 @@ namespace GpgFrontend { -class GlobalSettingStation::Impl - : SingletonFunctionObject<GlobalSettingStation::Impl> { +class GlobalSettingStation::Impl { public: /** * @brief Construct a new Global Setting Station object * */ - explicit Impl(int channel) noexcept - : SingletonFunctionObject<GlobalSettingStation::Impl>(channel) { + explicit Impl() noexcept { SPDLOG_INFO("app path: {}", app_path_.u8string()); SPDLOG_INFO("app configure path: {}", app_configure_path_.u8string()); SPDLOG_INFO("app data path: {}", app_data_path_.u8string()); @@ -269,7 +267,7 @@ class GlobalSettingStation::Impl GlobalSettingStation::GlobalSettingStation(int channel) noexcept : SingletonFunctionObject<GlobalSettingStation>(channel), - p_(std::make_unique<Impl>(channel)) {} + p_(std::make_unique<Impl>()) {} GlobalSettingStation::~GlobalSettingStation() noexcept = default; |