summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-04-22 00:44:15 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-04-22 00:44:15 +0000
commit7682ce4eac9b131d77755558a14403f8a309101c (patch)
treeb9de13156c83698c8ab14b86eb6de1e0a962c9ef
parent38d3f9d9a452ff44b7762a789641d3b1448f0040 (diff)
downloadlasso-7682ce4eac9b131d77755558a14403f8a309101c.tar.gz
lasso-7682ce4eac9b131d77755558a14403f8a309101c.tar.xz
lasso-7682ce4eac9b131d77755558a14403f8a309101c.zip
Utils: add lasso_release_ghashtable
-rw-r--r--lasso/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lasso/utils.h b/lasso/utils.h
index 09030b6b..f2467996 100644
--- a/lasso/utils.h
+++ b/lasso/utils.h
@@ -172,6 +172,9 @@
#define lasso_release_sec_key(dest) \
lasso_release_full2(dest, xmlSecKeyDestroy, xmlSecKeyPtr)
+#define lasso_release_ghashtable(dest) \
+ lasso_release_full2(dest, g_hash_table_destroy, GHashTable*)
+
/* Assignment and list appending */
/*
* lasso_assign_xxx macros ensure that you dot leak previous value of assigned things, they use