[gnome-builder] file: don't leak file basename



commit 38f50b19a7b75eb0515fd0c27d74f35d82374cb5
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 17 02:20:26 2016 -0700

    file: don't leak file basename

 libide/files/ide-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/files/ide-file.c b/libide/files/ide-file.c
index febc522..d141129 100644
--- a/libide/files/ide-file.c
+++ b/libide/files/ide-file.c
@@ -109,7 +109,7 @@ ide_file_create_language (IdeFile *self)
   GtkSourceLanguageManager *manager;
   GtkSourceLanguage *srclang;
   g_autofree gchar *content_type = NULL;
-  const gchar *filename;
+  g_autofree gchar *filename = NULL;
   gboolean uncertain = FALSE;
 
   g_assert (IDE_IS_FILE (self));


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