diff options
author | Benjamin Otte <otte@gnome.org> | 2009-06-05 10:49:24 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-06-11 10:05:40 +0200 |
commit | 7428ea86b4c1f04ca6530d8eff4ca60cc8894f7e (patch) | |
tree | cace244474983c22702839dec01bba363703187f | |
parent | 8207ca57b8d0bb24ca29d1bae696a892f7962295 (diff) | |
download | gvfs-7428ea86b4c1f04ca6530d8eff4ca60cc8894f7e.tar.gz |
[FTP] don't free nonexisting entry
-rw-r--r-- | daemon/gvfsftpdircache.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/daemon/gvfsftpdircache.c b/daemon/gvfsftpdircache.c index 4b8c1ba0..536f3e62 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) |