Mercurial > hg > forks > geeqie
changeset 892:a6eb1c549380
increase reference count before sending notification in file_data_new
author | Vladimir Nadvornik <nadvornik@suse.cz> |
---|---|
date | Sat, 19 Jul 2008 09:06:24 +0000 |
parents | d227b0af7410 |
children | d7767400aa15 |
files | src/filedata.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/filedata.c Fri Jul 18 21:20:49 2008 +0000 +++ b/src/filedata.c Sat Jul 19 09:06:24 2008 +0000 @@ -308,6 +308,8 @@ if (fd) { gboolean changed; + + file_data_ref(fd); if (fd->parent) changed = file_data_check_changed_files(fd); @@ -317,7 +319,7 @@ file_data_check_sidecars(fd); DEBUG_2("file_data_pool hit: '%s' %s", fd->path, changed ? "(changed)" : ""); - return file_data_ref(fd); + return fd; } fd = g_new0(FileData, 1);