Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-media/cddb-slave2/ChangeLog,v
retrieving revision 1.71.2.1
diff -u -r1.71.2.1 ChangeLog
--- ChangeLog	7 May 2003 05:12:53 -0000	1.71.2.1
+++ ChangeLog	8 Jul 2003 07:38:22 -0000
@@ -1,3 +1,7 @@
+2003-05-10  Kjartan Maraas  <kmaraas@gnome.org>
+
+	* cddb-slave-capplet.c (create_dialog): Plug some leaks.
+	
 2003-05-07 Balamurali Viswanathan <balamurali.viswanathan@wipro.com>
 
 	* cddb-track-editor.c,main.c: Start CDDBSlave2 per display
Index: cddb-parser.c
===================================================================
RCS file: /cvs/gnome/gnome-media/cddb-slave2/cddb-parser.c,v
retrieving revision 1.10
diff -u -r1.10 cddb-parser.c
--- cddb-parser.c	2 Aug 2002 23:30:46 -0000	1.10
+++ cddb-parser.c	8 Jul 2003 07:38:22 -0000
@@ -106,6 +106,9 @@
 
 	g_free (prev_vector[0]);
 	g_free (prev_vector[1]);
+
+	fclose (handle);
+
 	return TRUE;
 }
 
Index: cddb-slave-capplet.c
===================================================================
RCS file: /cvs/gnome/gnome-media/cddb-slave2/cddb-slave-capplet.c,v
retrieving revision 1.12
diff -u -r1.12 cddb-slave-capplet.c
--- cddb-slave-capplet.c	8 Jan 2003 17:36:18 -0000	1.12
+++ cddb-slave-capplet.c	8 Jul 2003 07:38:23 -0000
@@ -108,6 +108,7 @@
 		break;
 
 	default:
+		gconf_client_commit_change_set (client, changeset, TRUE, NULL);
 		gtk_widget_destroy (GTK_WIDGET (dialog));
 		break;
 	}
@@ -700,6 +701,7 @@
 	str = gconf_client_get_string (client, "/apps/CDDB-Slave2/name", NULL);
 	if (str != NULL) {
 		gtk_entry_set_text (GTK_ENTRY (pd->real_name), str);
+		g_free (str);
 	}
 	g_signal_connect (G_OBJECT (pd->real_name), "changed",
 			  G_CALLBACK (real_name_changed), pd);
@@ -719,6 +721,7 @@
 	str = gconf_client_get_string (client, "/apps/CDDB-Slave2/hostname", NULL);
 	if (str != NULL) {
 		gtk_entry_set_text (GTK_ENTRY (pd->real_host), str);
+		g_free (str);
 	}
 	g_signal_connect (G_OBJECT (pd->real_host), "changed",
 			  G_CALLBACK (real_host_changed), pd);
@@ -810,6 +813,7 @@
 	str = gconf_client_get_string (client, "/apps/CDDB-Slave2/server", NULL);
 	if (str != NULL) {
 		gtk_entry_set_text (GTK_ENTRY (pd->other_host), str);
+		g_free (str);
 	}
 	gtk_box_pack_start (GTK_BOX (hbox), pd->other_host, TRUE, TRUE, 0);
 
Index: cddb-slave.c
===================================================================
RCS file: /cvs/gnome/gnome-media/cddb-slave2/cddb-slave.c,v
retrieving revision 1.30
diff -u -r1.30 cddb-slave.c
--- cddb-slave.c	8 Jan 2003 17:36:19 -0000	1.30
+++ cddb-slave.c	8 Jul 2003 07:38:23 -0000
@@ -1453,7 +1453,7 @@
 
 	dyear = g_hash_table_lookup (entry->fields, "DYEAR");
 	if (dyear == NULL) {
-		dyear = g_string_new ("");
+		dyear = g_string_new (NULL);
 		g_string_printf (dyear, "%d", year);
 		g_hash_table_insert (entry->fields, g_strdup ("DYEAR"), dyear);
 	} else {
