[gvfs/ftp-reorg: 10/15] [FTP] don't free nonexisting entry
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gvfs/ftp-reorg: 10/15] [FTP] don't free nonexisting entry
- Date: Mon, 8 Jun 2009 15:22:59 -0400 (EDT)
commit 9caac6656d624841c41e6510cbe3a3a27fa9789b
Author: Benjamin Otte <otte gnome org>
Date: Fri Jun 5 10:49:24 2009 +0200
[FTP] don't free nonexisting entry
---
daemon/gvfsftpdircache.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/daemon/gvfsftpdircache.c b/daemon/gvfsftpdircache.c
index 4b8c1ba..536f3e6 100644
--- a/daemon/gvfsftpdircache.c
+++ b/daemon/gvfsftpdircache.c
@@ -311,10 +311,7 @@ g_vfs_ftp_dir_cache_lookup_file (GVfsFtpDirCache * cache,
entry = g_vfs_ftp_dir_cache_lookup_entry (cache, task, dir, 0);
g_vfs_ftp_file_free (dir);
if (entry == NULL)
- {
- g_vfs_ftp_dir_cache_entry_unref (entry);
- return NULL;
- }
+ return NULL;
info = g_hash_table_lookup (entry->files, file);
if (info != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]