[libgdata] core: Fix a memory leak in the logging code



commit 58964fb7f1e1608b32f275f28046fcffa6949fd7
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Dec 10 01:50:39 2010 +0000

    core: Fix a memory leak in the logging code

 gdata/gdata-service.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index ad7d192..7f2a85b 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -277,6 +277,8 @@ gdata_service_init (GDataService *self)
 		soup_logger_set_printer (logger, (SoupLoggerPrinter) soup_log_printer, self, NULL);
 
 		soup_session_add_feature (self->priv->session, SOUP_SESSION_FEATURE (logger));
+
+		g_object_unref (logger);
 	}
 
 	/* Proxy the SoupSession's proxy-uri and timeout properties */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]