diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2018-07-19 11:58:06 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2018-07-19 12:00:50 +0200 |
commit | b1d6f074980007aa29f1e1652399bea42f305403 (patch) | |
tree | a48f72b95ae23b1327b41072334dcc09a0b4eee9 | |
parent | 6d6ae80522c37f4a42f7d29e956b392cc345532c (diff) | |
download | nautilus-b1d6f074980007aa29f1e1652399bea42f305403.tar.gz |
nautilus-file: don't use g_autolist, undefined in this stack
g_autolist was introduced in a later version of GLib than the 3.26
stack. So don't use it here.
-rw-r--r-- | src/nautilus-file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c index 5865c3229..0ac53984b 100644 --- a/src/nautilus-file.c +++ b/src/nautilus-file.c @@ -8582,7 +8582,7 @@ nautilus_file_emit_changed (NautilusFile *file) for (p = link_files; p != NULL; p = p->next) { /* Looking for directly recursive links. */ - g_autolist (NautilusFile) link_targets = NULL; + GList *link_targets = NULL; NautilusDirectory *directory; if (p->data == file) @@ -8600,10 +8600,12 @@ nautilus_file_emit_changed (NautilusFile *file) directory == nautilus_file_get_directory (file)) { g_signal_emit (p->data, signals[CHANGED], 0, p->data); + nautilus_file_list_free (link_targets); continue; } nautilus_file_changed (NAUTILUS_FILE (p->data)); + nautilus_file_list_free (link_targets); } nautilus_file_list_free (link_files); } |