[gvfs] mtp: removed the faulty g_free(new_name) at the end of do_set_display_name()
- From: Philip Langdale <philipl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] mtp: removed the faulty g_free(new_name) at the end of do_set_display_name()
- Date: Sun, 27 Jul 2014 04:10:41 +0000 (UTC)
commit 0f84e858fd236412fda7c5d3837fefb79ac442e1
Author: Rok Mandeljc <rok mandeljc gmail com>
Date: Sat Jul 26 22:39:54 2014 +0200
mtp: removed the faulty g_free(new_name) at the end of do_set_display_name()
The new_name string is passed to add_cache_entry(), which assumes full
transfer; therefore, freeing the string manually causes issues further
down the line.
Signed-off-by: Rok Mandeljc <rok mandeljc gmail com>
daemon/gvfsbackendmtp.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index a17fe6b..16a504a 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1762,7 +1762,6 @@ do_set_display_name (GVfsBackend *backend,
emit_delete_event,
(char *)filename);
g_free (dir_name);
- g_free (new_name);
exit:
g_mutex_unlock (&G_VFS_BACKEND_MTP (backend)->mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]