aboutsummaryrefslogtreecommitdiff
path: root/include/crypto/cipher.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto/cipher.h')
-rw-r--r--include/crypto/cipher.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/cipher.h b/include/crypto/cipher.h
index cac90b410c..5928e5ecc7 100644
--- a/include/crypto/cipher.h
+++ b/include/crypto/cipher.h
@@ -170,6 +170,8 @@ QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg,
*/
void qcrypto_cipher_free(QCryptoCipher *cipher);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(QCryptoCipher, qcrypto_cipher_free)
+
/**
* qcrypto_cipher_encrypt:
* @cipher: the cipher object