[rhythmbox] mpid: free mount_path after we're done with it
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] mpid: free mount_path after we're done with it
- Date: Tue, 20 Oct 2009 21:56:05 +0000 (UTC)
commit 1509537b2a9f48d13db43d36a2a512df387c1836
Author: François Jaouen <francois jaouen laposte net>
Date: Wed Oct 21 07:55:29 2009 +1000
mpid: free mount_path after we're done with it
lib/libmediaplayerid/mpid-device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/libmediaplayerid/mpid-device.c b/lib/libmediaplayerid/mpid-device.c
index 5868bcd..7b0df29 100644
--- a/lib/libmediaplayerid/mpid-device.c
+++ b/lib/libmediaplayerid/mpid-device.c
@@ -149,7 +149,6 @@ mpid_device_get_device_path (MPIDDevice *device)
g_free (mount_path);
return device_path;
}
- g_free (mount_path);
/* it's not a mount point, so check if it's the path to a mounted device */
mounts = g_unix_mounts_get (NULL);
@@ -163,6 +162,7 @@ mpid_device_get_device_path (MPIDDevice *device)
g_unix_mount_free (mount);
}
g_list_free (mounts);
+ g_free (mount_path);
if (device_path == NULL) {
mpid_debug ("unable to find device path for mount point %s\n", device->input_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]