Don't leak CamelCertDB after camel_shutdown.
- From: Rob Taylor <rob taylor codethink co uk>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: Don't leak CamelCertDB after camel_shutdown.
- Date: Fri, 29 Aug 2008 17:44:00 +0100
Don't leak CamelCertDB after camel_shutdown.
---
libtinymail-camel/camel-lite/camel/camel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
--
Rob Taylor, Codethink Ltd. - http://codethink.co.uk
diff --git a/libtinymail-camel/camel-lite/camel/camel.c b/libtinymail-camel/camel-lite/camel/camel.c
index 0668bed..200d096 100644
--- a/libtinymail-camel/camel-lite/camel/camel.c
+++ b/libtinymail-camel/camel-lite/camel/camel.c
@@ -60,6 +60,9 @@ camel_shutdown (void)
certdb = camel_certdb_get_default ();
if (certdb) {
camel_certdb_save (certdb);
+ /* unref one for count by camel_certdb_get_default*/
+ camel_object_unref (certdb);
+ /* unref floating ref when camel_init created it */
camel_object_unref (certdb);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]