diff options
author | saturneric <[email protected]> | 2025-04-12 11:47:01 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-12 11:47:01 +0000 |
commit | b6e7eee4dfefb70505e29bd22d535ae1fcbed10c (patch) | |
tree | c7dc83074304d8df1232290905cc7757b6cb630a /src/core/model/GpgKey.h | |
parent | refactor: GpgKey and GpgSubKey (diff) | |
download | GpgFrontend-b6e7eee4dfefb70505e29bd22d535ae1fcbed10c.tar.gz GpgFrontend-b6e7eee4dfefb70505e29bd22d535ae1fcbed10c.zip |
fix: avoid accessing invalid pointers of structs related to gpgme_key
Diffstat (limited to 'src/core/model/GpgKey.h')
-rw-r--r-- | src/core/model/GpgKey.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/model/GpgKey.h b/src/core/model/GpgKey.h index 2102cdc4..3457b105 100644 --- a/src/core/model/GpgKey.h +++ b/src/core/model/GpgKey.h @@ -332,8 +332,7 @@ class GPGFRONTEND_CORE_EXPORT GpgKey : public GpgAbstractKey { [[nodiscard]] auto PrimaryKey() const -> GpgSubKey; private: - using KeyRefHandler = QSharedPointer<struct _gpgme_key>; ///< - KeyRefHandler key_ref_ = nullptr; ///< + QSharedPointer<struct _gpgme_key> key_ref_ = nullptr; ///< }; } // namespace GpgFrontend |