aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgKey.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-12 11:47:01 +0000
committersaturneric <[email protected]>2025-04-12 11:47:01 +0000
commitb6e7eee4dfefb70505e29bd22d535ae1fcbed10c (patch)
treec7dc83074304d8df1232290905cc7757b6cb630a /src/core/model/GpgKey.h
parentrefactor: GpgKey and GpgSubKey (diff)
downloadGpgFrontend-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.h3
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