[PATCH] Plug potential leak
- From: Christian Neumair <chris gnome-de org>
- To: nautilus-list gnome org
- Subject: [PATCH] Plug potential leak
- Date: Sun, 26 Feb 2006 11:56:25 +0100
The attached patch plugs a potential
nautilus_directory_notify_files_removed leak.
--
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-directory.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-directory.c,v
retrieving revision 1.257
diff -u -p -r1.257 nautilus-directory.c
--- libnautilus-private/nautilus-directory.c 12 Dec 2005 16:59:10 -0000 1.257
+++ libnautilus-private/nautilus-directory.c 26 Feb 2006 10:54:31 -0000
@@ -1086,8 +1086,9 @@ nautilus_directory_notify_files_removed
nautilus_file_mark_gone (file);
hash_table_list_prepend (changed_lists,
file->details->directory,
- file);
+ nautilus_file_ref (file));
}
+ nautilus_file_unref (file);
}
/* Now send out the changed signals. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]