[gvfs] ftp: Cleanup
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] ftp: Cleanup
- Date: Fri, 26 Feb 2010 15:33:13 +0000 (UTC)
commit aaccec1ea490fdef9c38a2324e081ef7015f4655
Author: Benjamin Otte <otte redhat com>
Date: Wed Feb 17 21:21:53 2010 +0100
ftp: Cleanup
Closing the data condition works unconditionally, the close function
checks itself.
daemon/gvfsftpconnection.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsftpconnection.c b/daemon/gvfsftpconnection.c
index 14a9148..1f8ee11 100644
--- a/daemon/gvfsftpconnection.c
+++ b/daemon/gvfsftpconnection.c
@@ -110,8 +110,7 @@ g_vfs_ftp_connection_free (GVfsFtpConnection *conn)
g_return_if_fail (conn != NULL);
g_vfs_ftp_connection_stop_listening (conn);
- if (conn->data)
- g_vfs_ftp_connection_close_data_connection (conn);
+ g_vfs_ftp_connection_close_data_connection (conn);
g_object_unref (conn->commands_in);
g_object_unref (conn->commands);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]