Index: agent/seahorse-agent-io.c
===================================================================
RCS file: /cvs/gnome/seahorse/agent/seahorse-agent-io.c,v
retrieving revision 1.6.2.2
diff -U3 -r1.6.2.2 seahorse-agent-io.c
--- agent/seahorse-agent-io.c	14 Aug 2005 06:48:25 -0000	1.6.2.2
+++ agent/seahorse-agent-io.c	14 Aug 2005 06:52:44 -0000
@@ -64,7 +64,6 @@
  */
 
 static GList *g_connections = NULL;     /* All open connections */
-static GMemChunk *g_memory = NULL;      /* Memory for connections */
 
 static gint g_socket = -1;              /* Socket we're listening on */
 static GIOChannel *g_iochannel = NULL;  /* IO channel for above */
@@ -183,7 +182,7 @@
     }
 
     g_connections = g_list_remove (g_connections, cn);
-    g_chunk_free (cn, g_memory);
+    g_free (cn);
 }
 
 /* Is the argument a assuan null parameter? */
@@ -518,9 +517,7 @@
         return TRUE;            /* don't stop listening */
     }
 
-    cn = g_chunk_new (SeahorseAgentConn, g_memory);
-    memset (cn, 0, sizeof (*cn));
-
+    cn = g_new0 (SeahorseAgentConn, 1);
     g_connections = g_list_append (g_connections, cn);
 
     /* Setup io channel for new socket */
@@ -558,9 +555,6 @@
     g_io_channel_set_close_on_unref (g_iochannel, TRUE);
     g_iochannel_tag = g_io_add_watch (g_iochannel, G_IO_IN, connect_handler, NULL);
 
-    /* The main memory queue */
-    g_memory = g_mem_chunk_create (SeahorseAgentConn, 128, G_ALLOC_AND_FREE);
-
     return 0;
 }
 
@@ -579,11 +573,6 @@
         g_list_foreach (g_connections, free_connections, NULL);
         g_list_free (g_connections);
         g_connections = NULL;
-    }
-
-    if (g_memory) {
-        g_mem_chunk_destroy (g_memory);
-        g_memory = NULL;
     }
 
     if (g_socket) {
