aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgContext.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2022-05-09 15:58:36 +0000
committerGitHub <[email protected]>2022-05-09 15:58:36 +0000
commita1bef0cc06a5c128a0f868ab59d7c153f5ab8aec (patch)
treef55b3c76f4203590b4bf40b6ab2f97965f5a51ec /src/core/GpgContext.cpp
parentMerge pull request #56 from saturneric/develop-2.0.6 (diff)
parentfix: modified init order (diff)
downloadGpgFrontend-a1bef0cc06a5c128a0f868ab59d7c153f5ab8aec.tar.gz
GpgFrontend-a1bef0cc06a5c128a0f868ab59d7c153f5ab8aec.zip
Merge pull request #57 from saturneric/develop-2.0.7v2.0.7
Develop 2.0.7
Diffstat (limited to '')
-rw-r--r--src/core/GpgContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/GpgContext.cpp b/src/core/GpgContext.cpp
index 0da963ee..733354fc 100644
--- a/src/core/GpgContext.cpp
+++ b/src/core/GpgContext.cpp
@@ -224,4 +224,8 @@ gpgme_error_t GpgContext::test_status_cb(void *hook, const char *keyword,
return GPG_ERR_NO_ERROR;
}
+void GpgContext::_ctx_ref_deleter::operator()(gpgme_ctx_t _ctx) {
+ if (_ctx != nullptr) gpgme_release(_ctx);
+}
+
} // namespace GpgFrontend \ No newline at end of file