aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/GpgContext.h')
-rw-r--r--src/core/GpgContext.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/GpgContext.h b/src/core/GpgContext.h
index b148fcb5..e1f1bda4 100644
--- a/src/core/GpgContext.h
+++ b/src/core/GpgContext.h
@@ -116,9 +116,7 @@ class GPGFRONTEND_CORE_EXPORT GpgContext
*
*/
struct _ctx_ref_deleter {
- void operator()(gpgme_ctx_t _ctx) {
- if (_ctx != nullptr) gpgme_release(_ctx);
- }
+ void operator()(gpgme_ctx_t _ctx);
};
using CtxRefHandler =