changeset 892:2022112583d0

increase reference count before sending notification in file_data_new
author nadvornik
date Sat, 19 Jul 2008 09:06:24 +0000
parents 841b387dd877
children 649c848333ee
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);