--- dillo/src/cache.c	Thu May 17 10:08:53 2001
+++ dillo.new/src/cache.c	Sat May 19 20:47:20 2001
@@ -67,7 +67,6 @@ static GSList *ClientQueue = NULL;
  *  Forward declarations
  */
 void Cache_process_queue(CacheData_t *entry);
-void Cache_delayed_process_queue(CacheData_t *entry);
 
 /*
  * Function substitutes (todo: implement this function)
@@ -223,7 +222,7 @@ gint Cache_open_url(const DilloUrl *Url,
    } else {
       /* Feed our client with cached data */
       ClientKey = Cache_enqueue_client(entry->Url, Call, CbData);
-      Cache_delayed_process_queue(entry);
+      Cache_process_queue(entry);
    }
    return ClientKey;
 }
@@ -247,7 +246,7 @@ gint a_Cache_open_url(const DilloUrl *Ur
       /* We have it in the Dicache! */
       entry = Cache_search(Url);
       ClientKey = Cache_enqueue_client(entry->Url, Call, CbData);
-      Cache_delayed_process_queue(entry);
+      Cache_process_queue(entry);
 
    } else {
       /* It can be anything; let's request it and decide what to do
@@ -495,8 +491,6 @@ gint Cache_redirect(CacheData_t *entry, 
             g_print(">>>Image redirection with entity-content<<<\n");
          }
       }
-      g_free(url_str);
-      g_free(location_str);
    }
    return 0;
 }
@@ -530,7 +524,7 @@ void Cache_process_queue(CacheData_t *en
    gint i;
 
    if ( Busy ) 
-      g_print("FATAL!:*** >>>> Cache_process_queue Caught busy!!!\n");
+      gtk_timeout_add(1,(GtkFunction)Cache_process_queue, entry);
    Busy = TRUE;
    if ( !(entry->Flags & CA_GotHeader) ) {
       Busy = FALSE;
@@ -591,23 +585,6 @@ void Cache_process_queue(CacheData_t *en
 
    Busy = FALSE;
    // g_print("QueueSize ====> %d\n", g_slist_length(ClientQueue));
-}
-
-/*
- * Callback function for Cache_delayed_process_queue.
- */
-gint Cache_delayed_process_queue_callback(gpointer *data)
-{
-   Cache_process_queue( (CacheData_t *)data );
-   return FALSE;
-}
-
-/*
- * Call Cache_process_queue from the gtk_main cycle
- */
-void Cache_delayed_process_queue(CacheData_t *entry)
-{
-   gtk_timeout_add(1,(GtkFunction)Cache_delayed_process_queue_callback, entry);
 }
 
 /*

