summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRok Mandeljc <rok.mandeljc@gmail.com>2014-07-26 22:39:54 +0200
committerPhilip Langdale <philipl@overt.org>2014-07-26 20:48:22 -0700
commit0f84e858fd236412fda7c5d3837fefb79ac442e1 (patch)
treee5c1da45a9e91b815c41118cf5dab9872e92ebc7
parent766a77bfd304b6741993527e25338480af0861cd (diff)
downloadgvfs-0f84e858fd236412fda7c5d3837fefb79ac442e1.tar.gz
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>
-rw-r--r--daemon/gvfsbackendmtp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index a17fe6b4..16a504a8 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);