projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a721316
)
increase reference count before sending notification in file_data_new
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Sat, 19 Jul 2008 09:06:24 +0000
(09:06 +0000)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Sat, 19 Jul 2008 09:06:24 +0000
(09:06 +0000)
src/filedata.c
patch
|
blob
|
history
diff --git
a/src/filedata.c
b/src/filedata.c
index
cafaff2
..
7ca49ce
100644
(file)
--- a/
src/filedata.c
+++ b/
src/filedata.c
@@
-308,6
+308,8
@@
static FileData *file_data_new(const gchar *path_utf8, struct stat *st, gboolean
if (fd)
{
gboolean changed;
+
+ file_data_ref(fd);
if (fd->parent)
changed = file_data_check_changed_files(fd);
@@
-317,7
+319,7
@@
static FileData *file_data_new(const gchar *path_utf8, struct stat *st, gboolean
file_data_check_sidecars(fd);
DEBUG_2("file_data_pool hit: '%s' %s", fd->path, changed ? "(changed)" : "");
- return f
ile_data_ref(fd)
;
+ return f
d
;
}
fd = g_new0(FileData, 1);