Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libnemo-private/nemo-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -7948,7 +7948,13 @@ nemo_file_mark_gone (NemoFile *file)
/* Let the directory know it's gone. */
directory = file->details->directory;
if (!nemo_file_is_self_owned (file)) {
/* Hold a temporary ref across nemo_directory_remove_file: when the
* directory is monitoring its file list, remove_file calls
* nemo_file_unref() which can drop the refcount to zero and free
* the object before the nemo_file_clear_info() call below. */
nemo_file_ref (file);
nemo_directory_remove_file (directory, file);
nemo_file_unref (file);
}

nemo_file_clear_info (file);
Expand Down