Merge remote-tracking branch 'origin/merge-requests/5'
authorKlaus Ethgen <Klaus@Ethgen.de>
Sun, 20 Jul 2014 12:54:56 +0000 (13:54 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Sun, 20 Jul 2014 12:54:56 +0000 (13:54 +0100)
* origin/merge-requests/5:
  Fix crash when loading collection listing inexistent files.

This is now a combination of Leons patch 900e65e and merge request of
Laurent. Hopefully that is now a bit more stable.

1  2 
src/filedata.c

diff --cc src/filedata.c
@@@ -1150,8 -1150,10 +1150,11 @@@ FileData *file_data_new_group(const gch
        filelist_read_real(dir, &files, NULL, TRUE);
  
        fd = g_hash_table_lookup(file_data_pool, path_utf8);
-       file_data_ref(fd);
 +      if (!fd) fd = file_data_new(path_utf8, &st, TRUE);
+       if (fd)
+               {
+               file_data_ref(fd);
+               }
  
        filelist_free(files);
        g_free(dir);