Fix a tiny leak in sa-junk-plugin

Kjartan Maraas <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <1156247927.30471.18.camel@rivendell>
This plugs a small leak and #if 0's an unused function.

Cheers
Kjartan

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
sa-junk-plugin-leak.patch (text/x-patch, 1.8 KB)
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  <[email protected]>
+
+	* em-junk-filter.c: (em_junk_sa_init): #if 0 out unused function and
+	plug a leak.
+
 2006-01-09  Kjartan Maraas <[email protected]>
 
 	* 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",
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.