[gvfs] dav: cleanup in case of mount error



commit 3c147616d5fbdf2aa22ef21aae9d38cf55675c6c
Author: Christian Kellner <christian kellner me>
Date:   Sun Aug 28 23:41:29 2016 +0200

    dav: cleanup in case of mount error
    
    Free the two messages use for mount root detection in case of error.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770549

 daemon/gvfsbackenddav.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c
index 10e7c97..1da12bf 100644
--- a/daemon/gvfsbackenddav.c
+++ b/daemon/gvfsbackenddav.c
@@ -2011,7 +2011,9 @@ do_mount (GVfsBackend  *backend,
           /* TODO: STRING CHANGE: change to: Could not find an enclosing directory */
         }
 
-      /* TODO: We leak a bunch of stuff here :-( */
+      g_object_unref (msg_opts);
+      g_object_unref (msg_stat);
+
       return;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]