[evolution-patches] Fix a tiny leak in sa-junk-plugin



This plugs a small leak and #if 0's an unused function.

Cheers
Kjartan

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/sa-junk-plugin/ChangeLog,v
retrieving revision 1.8
diff -u -p -r1.8 ChangeLog
--- ChangeLog	27 Jan 2006 16:34:02 -0000	1.8
+++ ChangeLog	22 Aug 2006 09:39:48 -0000
@@ -1,3 +1,8 @@
+2006-08-22  Kjartan Maraas  <kmaraas gnome org>
+
+	* em-junk-filter.c: (em_junk_sa_init): #if 0 out unused function and
+	plug a leak.
+
 2006-01-09  Kjartan Maraas <kmaraas gnome org>
 
 	* em-junk-filter.c: (em_junk_sa_run_spamd): Remove unused var.
Index: em-junk-filter.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/sa-junk-plugin/em-junk-filter.c,v
retrieving revision 1.8
diff -u -p -r1.8 em-junk-filter.c
--- em-junk-filter.c	27 Jan 2006 16:34:02 -0000	1.8
+++ em-junk-filter.c	22 Aug 2006 09:39:48 -0000
@@ -95,11 +95,13 @@ static int em_junk_sa_spamd_restarts_cou
 char *em_junk_sa_spamc_gconf_binary = NULL;
 char *em_junk_sa_spamd_gconf_binary = NULL;
 
+#if 0
 static const char *
 em_junk_sa_get_name (void)
 {
 	return _("Spamassassin (built-in)");
 }
+#endif
 
 static int
 pipe_to_sa_full (CamelMimeMessage *msg, const char *in, char **argv, int rv_err, int wait_for_termination, GByteArray *output_buffer)
@@ -755,7 +757,7 @@ em_junk_sa_init (void)
 
 		pthread_mutex_lock (&em_junk_sa_preferred_socket_path_lock);
 		g_free (em_junk_sa_preferred_socket_path);
-		em_junk_sa_preferred_socket_path = g_strdup (gconf_client_get_string (em_junk_sa_gconf, "/apps/evolution/mail/junk/sa/socket_path", NULL));
+		em_junk_sa_preferred_socket_path = gconf_client_get_string (em_junk_sa_gconf, "/apps/evolution/mail/junk/sa/socket_path", NULL);
 		pthread_mutex_unlock (&em_junk_sa_preferred_socket_path_lock);
 
 		gconf_client_notify_add(em_junk_sa_gconf, "/apps/evolution/mail/junk/sa",


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