[gvfs/gnome-2-30] afc: Fix memleak when looking for thumbnail files



commit 56a6d744f782807f693c8a830b9fb03f0edbfbe8
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Aug 17 18:32:40 2010 +0100

    afc: Fix memleak when looking for thumbnail files

 daemon/gvfsbackendafc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index a6c9e14..f7cbc5d 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -1022,6 +1022,7 @@ g_vfs_backend_afc_set_info_from_afcinfo (GVfsBackendAfc *self,
       mount_spec = g_vfs_backend_get_mount_spec (G_VFS_BACKEND (self));
       port = g_mount_spec_get (mount_spec, "port");
       thumb_uri = g_strdup_printf ("afc://%s%s%s", self->uuid, port ? port : "", thumb_path);
+      g_free (thumb_path);
       thumb_file = g_file_new_for_uri (thumb_uri);
       g_free (thumb_uri);
 



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