[sound-juicer] Fix a leak for the root file of the mount



commit 05deda8a8dc85df1fb7b299e9c908f3e19e64509
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 24 17:52:32 2009 +0000

    Fix a leak for the root file of the mount

 libjuicer/sj-metadata-gvfs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libjuicer/sj-metadata-gvfs.c b/libjuicer/sj-metadata-gvfs.c
index 73e337d..6e77fb4 100644
--- a/libjuicer/sj-metadata-gvfs.c
+++ b/libjuicer/sj-metadata-gvfs.c
@@ -116,6 +116,7 @@ gvfs_list_albums (SjMetadata *metadata, char **url, GError **error)
   				 G_FILE_QUERY_INFO_NONE, NULL, &my_error);
   if (e == NULL)
     goto bail;
+  g_object_unref (file);
 
   for (info = g_file_enumerator_next_file (e, NULL, NULL) ;
        info != NULL ;
@@ -197,6 +198,7 @@ sj_metadata_gvfs_set_property (GObject *object, guint property_id,
   case PROP_DEVICE:
     g_free (priv->cdrom);
     priv->cdrom = g_value_dup_string (value);
+    g_free (priv->uri);
     priv->uri = device_to_cdda_uri (priv->cdrom);
     break;
   case PROP_PROXY_HOST:



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