[gvfs] ftp: clear queue when mount fails
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] ftp: clear queue when mount fails
- Date: Wed, 16 Apr 2014 11:00:35 +0000 (UTC)
commit cce606379c3ebd3f8bf8c5a602a7b34a0d84e087
Author: Ondrej Holy <oholy redhat com>
Date: Wed Feb 19 14:32:57 2014 +0100
ftp: clear queue when mount fails
daemon/gvfsbackendftp.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index c28bf84..5e1693a 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -380,8 +380,10 @@ g_vfs_backend_ftp_finalize (GObject *object)
if (ftp->addr)
g_object_unref (ftp->addr);
- /* has been cleared on unmount */
- g_assert (ftp->queue == NULL);
+ /* has been cleared on unmount, however it has to be cleared when mount fails */
+ if (ftp->queue)
+ g_queue_free (ftp->queue);
+
g_cond_clear (&ftp->cond);
g_mutex_clear (&ftp->mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]