summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcaja-private/caja-file.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index 23e619f1..a1d82d3e 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -8324,16 +8324,12 @@ caja_file_list_call_when_ready (GList *file_list,
/* Need to do this here, as the list can be modified by this call */
l = l->next;
- caja_file_call_when_ready (file,
- attributes,
- file_list_file_ready_callback,
- data);
-
- data = file_list_ready_data_new
- (file_list, callback, callback_data);
+ if (file)
+ caja_file_call_when_ready (file,
+ attributes,
+ file_list_file_ready_callback,
+ data);
}
-
- file_list_ready_data_free (data);
}
void