[nautilus] file: fix memory leak in nautilus_file_is_remote
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file: fix memory leak in nautilus_file_is_remote
- Date: Thu, 22 Sep 2016 20:47:04 +0000 (UTC)
commit 7ed23baf58e09e73fa9036a70f3a627bb89b5af2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Aug 23 19:07:58 2016 -0300
file: fix memory leak in nautilus_file_is_remote
https://bugzilla.gnome.org/show_bug.cgi?id=770306
src/nautilus-file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index 6652736..9a89396 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -8196,7 +8196,7 @@ static const gchar * const remote_types[] =
gboolean
nautilus_file_is_remote (NautilusFile *file)
{
- char *filesystem_type;
+ g_autofree char* filesystem_type = NULL;
g_assert (NAUTILUS_IS_FILE (file));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]