[gnome-builder] libide: track removal of g_autoptr(gchar)



commit e100f5a91cf9869221c785d1fb7f3131a74efb42
Author: Christian Hergert <christian hergert me>
Date:   Tue Feb 24 10:39:09 2015 -0800

    libide: track removal of g_autoptr(gchar)
    
    GLib removed g_autoptr(gchar) so we need to switch to using something else.
    g_autofree gchar *foo works just as well.

 build/autotools/autoconf.d/50_dependencies.post-am |    2 +-
 libide/autotools/ide-autotools-build-system.c      |    2 +-
 libide/autotools/ide-autotools-build-task.c        |   12 ++++++------
 libide/autotools/ide-autotools-builder.c           |    2 +-
 libide/clang/ide-clang-translation-unit.c          |    6 +++---
 libide/gca/ide-gca-diagnostic-provider.c           |    6 +++---
 libide/gca/ide-gca-service.c                       |    4 ++--
 libide/git/ide-git-search-index.c                  |    6 +++---
 libide/git/ide-git-vcs.c                           |    4 ++--
 libide/gjs/ide-gjs-script.cpp                      |    6 +++---
 libide/gsettings/ide-gsettings-file-settings.c     |    2 +-
 libide/ide-build-result.c                          |   10 +++++-----
 libide/ide-context.c                               |    8 ++++----
 libide/ide-file.c                                  |    6 +++---
 libide/ide-script-manager.c                        |    2 +-
 libide/ide-unsaved-files.c                         |   20 ++++++++++----------
 libide/local/ide-local-device.c                    |    2 +-
 libide/pygobject/ide-pygobject-script.c            |    8 ++++----
 tests/test-ide-buffer-manager.c                    |    2 +-
 tools/ide-build.c                                  |    4 ++--
 tools/ide-list-diagnostics.c                       |    8 ++++----
 21 files changed, 61 insertions(+), 61 deletions(-)
---
diff --git a/build/autotools/autoconf.d/50_dependencies.post-am 
b/build/autotools/autoconf.d/50_dependencies.post-am
index faefbcc..ea1d76f 100644
--- a/build/autotools/autoconf.d/50_dependencies.post-am
+++ b/build/autotools/autoconf.d/50_dependencies.post-am
@@ -1,5 +1,5 @@
 m4_define([gtk_required_version], [3.15.6])
-m4_define([glib_required_version], [2.43.4])
+m4_define([glib_required_version], [2.43.90])
 m4_define([gtksourceview_required_version], [3.15.4])
 m4_define([ggit_required_version], [0.0.24])
 m4_define([gjs_required_version], [1.42.0])
diff --git a/libide/autotools/ide-autotools-build-system.c b/libide/autotools/ide-autotools-build-system.c
index 0bc3571..3784fe6 100644
--- a/libide/autotools/ide-autotools-build-system.c
+++ b/libide/autotools/ide-autotools-build-system.c
@@ -147,7 +147,7 @@ ide_autotools_build_system_discover_file_async (IdeAutotoolsBuildSystem *system,
                                                 GAsyncReadyCallback      callback,
                                                 gpointer                 user_data)
 {
-  g_autoptr(gchar) name = NULL;
+  g_autofree gchar *name = NULL;
   g_autoptr(GTask) task = NULL;
 
   g_return_if_fail (IDE_IS_AUTOTOOLS_BUILD_SYSTEM (system));
diff --git a/libide/autotools/ide-autotools-build-task.c b/libide/autotools/ide-autotools-build-task.c
index ec19aa7..282e441 100644
--- a/libide/autotools/ide-autotools-build-task.c
+++ b/libide/autotools/ide-autotools-build-task.c
@@ -255,7 +255,7 @@ ide_autotools_build_task_set_directory (IdeAutotoolsBuildTask *self,
    */
   if (directory)
     {
-      g_autoptr(gchar) path;
+      g_autofree gchar *path;
 
       path = g_file_get_path (directory);
 
@@ -524,7 +524,7 @@ static WorkerState *
 worker_state_new (IdeAutotoolsBuildTask *self)
 {
   IdeAutotoolsBuildTaskPrivate *priv;
-  g_autoptr(gchar) name = NULL;
+  g_autofree gchar *name = NULL;
   IdeContext *context;
   GPtrArray *make_targets;
   GFile *project_dir;
@@ -730,8 +730,8 @@ step_autogen (GTask                 *task,
               WorkerState           *state,
               GCancellable          *cancellable)
 {
-  g_autoptr(gchar) autogen_sh_path = NULL;
-  g_autoptr(gchar) configure_path = NULL;
+  g_autofree gchar *autogen_sh_path = NULL;
+  g_autofree gchar *configure_path = NULL;
   g_autoptr(GSubprocessLauncher) launcher = NULL;
   g_autoptr(GSubprocess) process = NULL;
   GError *error = NULL;
@@ -814,8 +814,8 @@ step_configure (GTask                 *task,
 {
   g_autoptr(GSubprocessLauncher) launcher = NULL;
   g_autoptr(GSubprocess) process = NULL;
-  g_autoptr(gchar) makefile_path = NULL;
-  g_autoptr(gchar) config_log = NULL;
+  g_autofree gchar *makefile_path = NULL;
+  g_autofree gchar *config_log = NULL;
   GError *error = NULL;
 
   g_assert (G_IS_TASK (task));
diff --git a/libide/autotools/ide-autotools-builder.c b/libide/autotools/ide-autotools-builder.c
index 314ae84..970f5e4 100644
--- a/libide/autotools/ide-autotools-builder.c
+++ b/libide/autotools/ide-autotools-builder.c
@@ -135,7 +135,7 @@ ide_autotools_builder_build_async (IdeBuilder           *builder,
   IdeAutotoolsBuilder *self = (IdeAutotoolsBuilder *)builder;
   g_autoptr(IdeAutotoolsBuildTask) build_result = NULL;
   g_autoptr(GTask) task = NULL;
-  g_autoptr(gchar) build_dir = NULL;
+  g_autofree gchar *build_dir = NULL;
   g_autoptr(GFile) directory = NULL;
   const gchar *device_id;
   const gchar *project_name;
diff --git a/libide/clang/ide-clang-translation-unit.c b/libide/clang/ide-clang-translation-unit.c
index 47446df..a1440fd 100644
--- a/libide/clang/ide-clang-translation-unit.c
+++ b/libide/clang/ide-clang-translation-unit.c
@@ -120,7 +120,7 @@ create_location (IdeClangTranslationUnit *self,
   IdeSourceLocation *ret = NULL;
   IdeFile *file = NULL;
   CXFile cxfile = NULL;
-  g_autoptr(gchar) path = NULL;
+  g_autofree gchar *path = NULL;
   CXString str;
   unsigned line;
   unsigned column;
@@ -194,7 +194,7 @@ create_diagnostic (IdeClangTranslationUnit *self,
   IdeDiagnosticSeverity severity;
   IdeDiagnostic *diag;
   IdeSourceLocation *loc;
-  g_autoptr(gchar) spelling = NULL;
+  g_autofree gchar *spelling = NULL;
   CXString cxstr;
   CXSourceLocation cxloc;
   guint num_ranges;
@@ -251,7 +251,7 @@ ide_clang_translation_unit_get_diagnostics (IdeClangTranslationUnit *self)
       IdeContext *context;
       IdeProject *project;
       IdeVcs *vcs;
-      g_autoptr(gchar) workpath = NULL;
+      g_autofree gchar *workpath = NULL;
       GFile *workdir;
       GPtrArray *ar;
       guint count;
diff --git a/libide/gca/ide-gca-diagnostic-provider.c b/libide/gca/ide-gca-diagnostic-provider.c
index feda13f..0279504 100644
--- a/libide/gca/ide-gca-diagnostic-provider.c
+++ b/libide/gca/ide-gca-diagnostic-provider.c
@@ -227,7 +227,7 @@ parse_cb (GObject      *object,
   GcaDiagnostics *doc_proxy;
   gboolean ret;
   GError *error = NULL;
-  g_autoptr(gchar) document_path = NULL;
+  g_autofree gchar *document_path = NULL;
 
   g_assert (GCA_IS_SERVICE (proxy));
   g_assert (G_IS_TASK (task));
@@ -247,7 +247,7 @@ parse_cb (GObject      *object,
 
   if (!doc_proxy)
     {
-      g_autoptr(gchar) well_known_name = NULL;
+      g_autofree gchar *well_known_name = NULL;
       GDBusConnection *conn;
 
       well_known_name = g_strdup_printf ("org.gnome.CodeAssist.v1.%s",
@@ -282,7 +282,7 @@ get_proxy_cb (GObject      *object,
   const gchar *temp_path;
   GError *error = NULL;
   GFile *gfile;
-  g_autoptr(gchar) path = NULL;
+  g_autofree gchar *path = NULL;
   GVariant *cursor = NULL;
   GVariant *options = NULL;
 
diff --git a/libide/gca/ide-gca-service.c b/libide/gca/ide-gca-service.c
index fa0a655..08a50c0 100644
--- a/libide/gca/ide-gca-service.c
+++ b/libide/gca/ide-gca-service.c
@@ -86,8 +86,8 @@ ide_gca_service_get_proxy_async (IdeGcaService       *self,
                                  gpointer             user_data)
 {
   g_autoptr(GTask) task = NULL;
-  g_autoptr(gchar) name = NULL;
-  g_autoptr(gchar) object_path = NULL;
+  g_autofree gchar *name = NULL;
+  g_autofree gchar *object_path = NULL;
   GcaService *proxy;
 
   g_return_if_fail (IDE_IS_GCA_SERVICE (self));
diff --git a/libide/git/ide-git-search-index.c b/libide/git/ide-git-search-index.c
index 9d117f3..01f98d7 100644
--- a/libide/git/ide-git-search-index.c
+++ b/libide/git/ide-git-search-index.c
@@ -168,7 +168,7 @@ ide_git_search_index_populate (IdeGitSearchIndex *self,
                                const gchar       *search_terms)
 {
   g_auto(IdeSearchReducer) reducer = { 0 };
-  g_autoptr(gchar) delimited = NULL;
+  g_autofree gchar *delimited = NULL;
   IdeContext *context;
   IdeProject *project;
   const gchar *project_name;
@@ -208,8 +208,8 @@ ide_git_search_index_populate (IdeGitSearchIndex *self,
 
       if (ide_search_reducer_accepts (&reducer, match->score))
         {
-          g_autoptr(gchar) shortname = NULL;
-          g_autoptr(gchar) markup = NULL;
+          g_autofree gchar *shortname = NULL;
+          g_autofree gchar *markup = NULL;
           g_autoptr(IdeSearchResult) result = NULL;
           gchar **parts;
           gsize j;
diff --git a/libide/git/ide-git-vcs.c b/libide/git/ide-git-vcs.c
index 621e8fd..6877818 100644
--- a/libide/git/ide-git-vcs.c
+++ b/libide/git/ide-git-vcs.c
@@ -143,7 +143,7 @@ ide_git_vcs_reload_index_add_path (IdeGitVcs   *self,
   IdeContext *context;
   GFileInfo *file_info = NULL;
   GFile *file = NULL;
-  g_autoptr(gchar) fullpath = NULL;
+  g_autofree gchar *fullpath = NULL;
   gchar *dir;
   gchar *name;
 
@@ -210,7 +210,7 @@ ide_git_vcs_reload_index (IdeGitVcs  *self,
   IdeProject *project;
   GgitIndex *index = NULL;
   GHashTable *cache = NULL;
-  g_autoptr(gchar) workdir = NULL;
+  g_autofree gchar *workdir = NULL;
   gboolean ret = FALSE;
   guint count;
   guint i;
diff --git a/libide/gjs/ide-gjs-script.cpp b/libide/gjs/ide-gjs-script.cpp
index 7ddfd73..5b0eee9 100644
--- a/libide/gjs/ide-gjs-script.cpp
+++ b/libide/gjs/ide-gjs-script.cpp
@@ -49,8 +49,8 @@ ide_gjs_script_load (IdeScript *script)
   IdeContext *context;
   GjsContext *old_current;
   g_autoptr(GError) error = NULL;
-  g_autoptr(gchar) contents = NULL;
-  g_autoptr(gchar) path = NULL;
+  g_autofree gchar *contents = NULL;
+  g_autofree gchar *path = NULL;
   g_autoptr(GFile) parent = NULL;
   gchar **search_path;
   GFile *file;
@@ -175,7 +175,7 @@ ide_gjs_script_init_async (GAsyncInitable      *initable,
 {
   IdeGjsScript *self = (IdeGjsScript *)initable;
   g_autoptr(GTask) task = NULL;
-  g_autoptr(gchar) path = NULL;
+  g_autofree gchar *path = NULL;
   GFile *file;
 
   g_return_if_fail (IDE_IS_GJS_SCRIPT (self));
diff --git a/libide/gsettings/ide-gsettings-file-settings.c b/libide/gsettings/ide-gsettings-file-settings.c
index 803a154..01c762d 100644
--- a/libide/gsettings/ide-gsettings-file-settings.c
+++ b/libide/gsettings/ide-gsettings-file-settings.c
@@ -85,7 +85,7 @@ ide_gsettings_file_settings_init_async (GAsyncInitable      *initable,
   IdeGsettingsFileSettings *self = (IdeGsettingsFileSettings *)initable;
   g_autoptr(GSettings) settings = NULL;
   g_autoptr(GTask) task = NULL;
-  g_autoptr(gchar) path = NULL;
+  g_autofree gchar *path = NULL;
   IdeLanguage *language;
   IdeFile *file;
   const gchar *lang_id;
diff --git a/libide/ide-build-result.c b/libide/ide-build-result.c
index 581958e..e713136 100644
--- a/libide/ide-build-result.c
+++ b/libide/ide-build-result.c
@@ -48,7 +48,7 @@ _ide_build_result_open_log (IdeBuildResult  *self,
                             GOutputStream  **write_stream,
                             const gchar     *template)
 {
-  g_autoptr(gchar) name_used = NULL;
+  g_autofree gchar *name_used = NULL;
   gint fd;
 
   g_return_val_if_fail (IDE_IS_BUILD_RESULT (self), FALSE);
@@ -76,7 +76,7 @@ static void
 _ide_build_result_log (GOutputStream  *stream,
                        const gchar    *message)
 {
-  g_autoptr(gchar) buffer = NULL;
+  g_autofree gchar *buffer = NULL;
 
   g_return_if_fail (G_IS_OUTPUT_STREAM (stream));
   g_return_if_fail (message);
@@ -100,7 +100,7 @@ ide_build_result_log_stdout (IdeBuildResult *self,
                              ...)
 {
   IdeBuildResultPrivate *priv = ide_build_result_get_instance_private (self);
-  g_autoptr(gchar) msg = NULL;
+  g_autofree gchar *msg = NULL;
   va_list args;
 
   /* lazy create stream if necessary */
@@ -122,7 +122,7 @@ ide_build_result_log_stderr (IdeBuildResult *self,
                              ...)
 {
   IdeBuildResultPrivate *priv = ide_build_result_get_instance_private (self);
-  g_autoptr(gchar) msg = NULL;
+  g_autofree gchar *msg = NULL;
   va_list args;
 
   /* lazy create stream if necessary */
@@ -205,7 +205,7 @@ ide_build_result_tail_cb (GObject      *object,
 {
   GDataInputStream *reader = (GDataInputStream *)object;
   g_autoptr(GOutputStream) writer = user_data;
-  g_autoptr(gchar) line = NULL;
+  g_autofree gchar *line = NULL;
   g_autoptr(GError) error = NULL;
   gsize n_read;
 
diff --git a/libide/ide-context.c b/libide/ide-context.c
index 694ab2f..6c93fb7 100644
--- a/libide/ide-context.c
+++ b/libide/ide-context.c
@@ -649,7 +649,7 @@ ide_context_class_init (IdeContextClass *klass)
 static void
 ide_context_init (IdeContext *self)
 {
-  g_autoptr(gchar) scriptsdir = NULL;
+  g_autofree gchar *scriptsdir = NULL;
 
   self->root_build_dir = g_build_filename (g_get_user_cache_dir (),
                                            ide_get_program_name (),
@@ -701,7 +701,7 @@ ide_context_init_project_name_cb (GObject      *object,
                                   gpointer      user_data)
 {
   IdeContext *self;
-  g_autoptr(gchar) name = NULL;
+  g_autofree gchar *name = NULL;
   g_autoptr(GTask) task = user_data;
   g_autoptr(GFileInfo) file_info = NULL;
   GFile *file = (GFile *)object;
@@ -716,7 +716,7 @@ ide_context_init_project_name_cb (GObject      *object,
   if (file_info &&
       (G_FILE_TYPE_DIRECTORY == g_file_info_get_file_type (file_info)))
     {
-      g_autoptr(gchar) name = NULL;
+      g_autofree gchar *name = NULL;
 
       name = g_file_get_basename (file);
       _ide_project_set_name (self->project, name);
@@ -724,7 +724,7 @@ ide_context_init_project_name_cb (GObject      *object,
   else
     {
       g_autoptr(GFile) parent = NULL;
-      g_autoptr(gchar) name = NULL;
+      g_autofree gchar *name = NULL;
 
       parent = g_file_get_parent (file);
       name = g_file_get_basename (parent);
diff --git a/libide/ide-file.c b/libide/ide-file.c
index 071e352..f55f6ac 100644
--- a/libide/ide-file.c
+++ b/libide/ide-file.c
@@ -91,8 +91,8 @@ ide_file_create_language (IdeFile *self)
       GtkSourceLanguage *srclang;
       IdeLanguage *language = NULL;
       const gchar *lang_id = NULL;
-      g_autoptr(gchar) content_type = NULL;
-      g_autoptr(gchar) filename = NULL;
+      g_autofree gchar *content_type = NULL;
+      g_autofree gchar *filename = NULL;
       IdeContext *context;
       gboolean uncertain = TRUE;
 
@@ -108,7 +108,7 @@ ide_file_create_language (IdeFile *self)
 
       if (srclang)
         {
-          g_autoptr(gchar) ext_name = NULL;
+          g_autofree gchar *ext_name = NULL;
           GIOExtension *extension;
           GIOExtensionPoint *point;
           const gchar *lookup_id;
diff --git a/libide/ide-script-manager.c b/libide/ide-script-manager.c
index 7828d8a..67efbd7 100644
--- a/libide/ide-script-manager.c
+++ b/libide/ide-script-manager.c
@@ -180,7 +180,7 @@ ide_script_manager_get_files_worker (GTask        *task,
 
   while ((name = g_dir_read_name (dir)))
     {
-      g_autoptr(gchar) path = NULL;
+      g_autofree gchar *path = NULL;
       g_autoptr(GFile) file = NULL;
 
       if (!allow_file (name))
diff --git a/libide/ide-unsaved-files.c b/libide/ide-unsaved-files.c
index 9d5832a..68bdb83 100644
--- a/libide/ide-unsaved-files.c
+++ b/libide/ide-unsaved-files.c
@@ -130,7 +130,7 @@ ide_unsaved_files_save_worker (GTask        *task,
 {
   GString *manifest;
   AsyncState *state = task_data;
-  g_autoptr(gchar) manifest_path = NULL;
+  g_autofree gchar *manifest_path = NULL;
   GError *error = NULL;
   gsize i;
 
@@ -145,9 +145,9 @@ ide_unsaved_files_save_worker (GTask        *task,
 
   for (i = 0; i < state->unsaved_files->len; i++)
     {
-      g_autoptr(gchar) path = NULL;
-      g_autoptr(gchar) uri = NULL;
-      g_autoptr(gchar) hash = NULL;
+      g_autofree gchar *path = NULL;
+      g_autofree gchar *uri = NULL;
+      g_autofree gchar *hash = NULL;
       UnsavedFile *uf;
 
       uf = g_ptr_array_index (state->unsaved_files, i);
@@ -256,8 +256,8 @@ ide_unsaved_files_restore_worker (GTask        *task,
                                   GCancellable *cancellable)
 {
   AsyncState *state = task_data;
-  g_autoptr(gchar) contents = NULL;
-  g_autoptr(gchar) manifest_path = NULL;
+  g_autofree gchar *contents = NULL;
+  g_autofree gchar *manifest_path = NULL;
   gchar **lines;
   GError *error = NULL;
   gsize len;
@@ -288,9 +288,9 @@ ide_unsaved_files_restore_worker (GTask        *task,
   for (i = 0; lines [i]; i++)
     {
       g_autoptr(GFile) file = NULL;
-      g_autoptr(gchar) contents = NULL;
-      g_autoptr(gchar) hash = NULL;
-      g_autoptr(gchar) path = NULL;
+      g_autofree gchar *contents = NULL;
+      g_autofree gchar *hash = NULL;
+      g_autofree gchar *path = NULL;
       UnsavedFile *unsaved;
       gsize len;
 
@@ -415,7 +415,7 @@ setup_tempfile (GFile  *file,
                 gint   *temp_fd,
                 gchar **temp_path)
 {
-  g_autoptr(gchar) name = NULL;
+  g_autofree gchar *name = NULL;
   const gchar *suffix;
   gchar *template;
 
diff --git a/libide/local/ide-local-device.c b/libide/local/ide-local-device.c
index 8464c18..5ce52fa 100644
--- a/libide/local/ide-local-device.c
+++ b/libide/local/ide-local-device.c
@@ -31,7 +31,7 @@ G_DEFINE_TYPE_WITH_PRIVATE (IdeLocalDevice, ide_local_device, IDE_TYPE_DEVICE)
 static gchar *
 get_system_type (void)
 {
-  g_autoptr(gchar) os_lower = NULL;
+  g_autofree gchar *os_lower = NULL;
   struct utsname u;
 
   if (uname (&u) < 0)
diff --git a/libide/pygobject/ide-pygobject-script.c b/libide/pygobject/ide-pygobject-script.c
index 1c93232..2ce2730 100644
--- a/libide/pygobject/ide-pygobject-script.c
+++ b/libide/pygobject/ide-pygobject-script.c
@@ -110,10 +110,10 @@ ide_pygobject_script_load (IdeScript *script)
   IdePyGObjectScript *self = (IdePyGObjectScript *)script;
   IdeContext *context;
   g_autoptr(GError) error = NULL;
-  g_autoptr(gchar) contents = NULL;
-  g_autoptr(gchar) path = NULL;
+  g_autofree gchar *contents = NULL;
+  g_autofree gchar *path = NULL;
   g_autoptr(GFile) parent = NULL;
-  g_autoptr(gchar) parent_path = NULL;
+  g_autofree gchar *parent_path = NULL;
   GFile *file;
   PyObject *globals = NULL;
   PyObject *builtins_module;
@@ -233,7 +233,7 @@ ide_pygobject_script_init_async (GAsyncInitable      *initable,
 {
   IdePyGObjectScript *self = (IdePyGObjectScript *)initable;
   g_autoptr(GTask) task = NULL;
-  g_autoptr(gchar) path = NULL;
+  g_autofree gchar *path = NULL;
   GFile *file;
 
   g_return_if_fail (IDE_IS_PYGOBJECT_SCRIPT (self));
diff --git a/tests/test-ide-buffer-manager.c b/tests/test-ide-buffer-manager.c
index 6f05ed2..bc7e5cf 100644
--- a/tests/test-ide-buffer-manager.c
+++ b/tests/test-ide-buffer-manager.c
@@ -76,7 +76,7 @@ test_buffer_manager_basic_cb2 (GObject      *object,
   GtkTextIter begin, end;
   IdeFile *file;
   test_buffer_manager_basic_state *state = user_data;
-  g_autoptr(gchar) text = NULL;
+  g_autofree gchar *text = NULL;
   int fd;
 
   buffer = ide_buffer_manager_load_file_finish (buffer_manager, result, &state->error);
diff --git a/tools/ide-build.c b/tools/ide-build.c
index 3a4706b..924a24e 100644
--- a/tools/ide-build.c
+++ b/tools/ide-build.c
@@ -102,7 +102,7 @@ read_line_cb (GObject      *object,
               gpointer      user_data)
 {
   GDataInputStream *data_stream = (GDataInputStream *)object;
-  g_autoptr(gchar) line = NULL;
+  g_autofree gchar *line = NULL;
   g_autoptr(GError) error = NULL;
   gsize length = 0;
 
@@ -169,7 +169,7 @@ print_build_info (IdeContext *context,
   const gchar *build_system_name;
   const gchar *device_id;
   const gchar *system_type;
-  g_autoptr(gchar) build_date = NULL;
+  g_autofree gchar *build_date = NULL;
   GTimeVal tv;
 
   project = ide_context_get_project (context);
diff --git a/tools/ide-list-diagnostics.c b/tools/ide-list-diagnostics.c
index 5411b91..d83357c 100644
--- a/tools/ide-list-diagnostics.c
+++ b/tools/ide-list-diagnostics.c
@@ -69,7 +69,7 @@ static gchar *
 get_line (GFile *file,
           guint  line)
 {
-  g_autoptr(gchar) contents = NULL;
+  g_autofree gchar *contents = NULL;
   gchar **lines;
   gchar *ret = NULL;
   gsize len;
@@ -90,13 +90,13 @@ print_diagnostic (IdeDiagnostic *diag)
   IdeSourceLocation *location;
   IdeFile *file;
   const gchar *text;
-  g_autoptr(gchar) path = NULL;
+  g_autofree gchar *path = NULL;
   IdeDiagnosticSeverity severity;
   GFile *gfile;
   gsize num_ranges;
   guint line;
   guint column;
-  g_autoptr(gchar) linestr = NULL;
+  g_autofree gchar *linestr = NULL;
   gsize i;
 
   text = ide_diagnostic_get_text (diag);
@@ -221,7 +221,7 @@ context_cb (GObject      *object,
   IdeFile *file;
   IdeVcs *vcs;
   GFile *workdir;
-  g_autoptr(gchar) relpath = NULL;
+  g_autofree gchar *relpath = NULL;
 
   context = ide_context_new_finish (result, &error);
 


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