aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgme.c')
-rw-r--r--src/gpgme.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgme.c b/src/gpgme.c
index 3283b342..56caf59c 100644
--- a/src/gpgme.c
+++ b/src/gpgme.c
@@ -189,6 +189,8 @@ gpgme_result_ref (void *result)
data = result - sizeof (struct ctx_op_data);
+ assert (data->magic == CTX_OP_DATA_MAGIC);
+
LOCK (result_ref_lock);
data->references++;
UNLOCK (result_ref_lock);
@@ -205,6 +207,8 @@ gpgme_result_unref (void *result)
data = result - sizeof (struct ctx_op_data);
+ assert (data->magic == CTX_OP_DATA_MAGIC);
+
LOCK (result_ref_lock);
if (--data->references)
{