[gnome-builder/gnome-builder-3-28] clang: fix unref callback



commit 5e36658828ccd28c891c4158bd5aed20fa5e960e
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 18 17:07:49 2018 -0700

    clang: fix unref callback

 src/plugins/clang/ide-clang-translation-unit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/clang/ide-clang-translation-unit.c b/src/plugins/clang/ide-clang-translation-unit.c
index 45fb02ca4..e338a6316 100644
--- a/src/plugins/clang/ide-clang-translation-unit.c
+++ b/src/plugins/clang/ide-clang-translation-unit.c
@@ -931,7 +931,7 @@ ide_clang_translation_unit_lookup_symbol (IdeClangTranslationUnit  *self,
           gfile = g_file_new_for_path (path);
           file = ide_file_new (context, gfile);
 
-          g_clear_pointer (&definition, ide_symbol_unref);
+          g_clear_pointer (&definition, ide_source_location_unref);
           declaration = ide_source_location_new (file, 0, 0, 0);
         }
     }


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