Index: egg-recent-model.c
===================================================================
RCS file: /cvs/gnome/libegg/libegg/recent-files/egg-recent-model.c,v
retrieving revision 1.42
diff -u -p -r1.42 egg-recent-model.c
--- egg-recent-model.c	28 Nov 2005 17:52:00 -0000	1.42
+++ egg-recent-model.c	2 Dec 2005 09:52:49 -0000
@@ -579,19 +579,18 @@ static GList *
 egg_recent_model_filter (EggRecentModel *model,
 				GList *list)
 {
-	EggRecentItem *item;
+	GList *l;
 	GList *newlist = NULL;
 	gchar *mime_type;
 	gchar *uri;
 
 	g_return_val_if_fail (list != NULL, NULL);
 
-	while (list) {
+	for (l = list; l != NULL; l = l->next) {
+		EggRecentItem *item = l->data;
 		gboolean pass_mime_test = FALSE;
 		gboolean pass_group_test = FALSE;
 		gboolean pass_scheme_test = FALSE;
-		item = (EggRecentItem *)list->data;
-		list = list->next;
 
 		uri = egg_recent_item_get_uri (item);
 
@@ -639,16 +638,10 @@ egg_recent_model_filter (EggRecentModel 
 		g_free (uri);
 	}
 
-	if (newlist) {
-		newlist = g_list_reverse (newlist);
-		g_list_free (list);
-	}
-
+	g_list_free (list);
 	
-	return newlist;
+	return g_list_reverse (newlist);
 }
-
-
 
 #if 0
 static void
