Mercurial > geeqie
comparison src/filedata.c @ 892:2022112583d0
increase reference count before sending notification in file_data_new
author | nadvornik |
---|---|
date | Sat, 19 Jul 2008 09:06:24 +0000 |
parents | d8e1e820cee7 |
children | cf21dc928122 |
comparison
equal
deleted
inserted
replaced
891:841b387dd877 | 892:2022112583d0 |
---|---|
306 | 306 |
307 fd = g_hash_table_lookup(file_data_pool, path_utf8); | 307 fd = g_hash_table_lookup(file_data_pool, path_utf8); |
308 if (fd) | 308 if (fd) |
309 { | 309 { |
310 gboolean changed; | 310 gboolean changed; |
311 | |
312 file_data_ref(fd); | |
311 | 313 |
312 if (fd->parent) | 314 if (fd->parent) |
313 changed = file_data_check_changed_files(fd); | 315 changed = file_data_check_changed_files(fd); |
314 else | 316 else |
315 changed = file_data_check_changed_files_recursive(fd, st); | 317 changed = file_data_check_changed_files_recursive(fd, st); |
316 if (changed && check_sidecars && sidecar_file_priority(fd->extension)) | 318 if (changed && check_sidecars && sidecar_file_priority(fd->extension)) |
317 file_data_check_sidecars(fd); | 319 file_data_check_sidecars(fd); |
318 DEBUG_2("file_data_pool hit: '%s' %s", fd->path, changed ? "(changed)" : ""); | 320 DEBUG_2("file_data_pool hit: '%s' %s", fd->path, changed ? "(changed)" : ""); |
319 | 321 |
320 return file_data_ref(fd); | 322 return fd; |
321 } | 323 } |
322 | 324 |
323 fd = g_new0(FileData, 1); | 325 fd = g_new0(FileData, 1); |
324 | 326 |
325 fd->path = NULL; | 327 fd->path = NULL; |