[glib] autocleanups: Remove g_autoptr(gchar)



commit 1b348a876f84342bb3a197fadd249f8ce95abfeb
Author: Colin Walters <walters verbum org>
Date:   Mon Feb 23 07:56:34 2015 -0500

    autocleanups: Remove g_autoptr(gchar)
    
    - It's not sufficient, there are other bare array types
      like guint8, gdouble, etc.
    
    - Other types like GVariant* always come as pointers, whereas
      there's a rather fundamental distinction between "gchar" and
      "gchar*" that has been signified to C programmers for 30+ years via
      the '*' character, and we're hiding that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744747

 glib/glib-autocleanups.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/glib/glib-autocleanups.h b/glib/glib-autocleanups.h
index 80d7b2b..4c23c8e 100644
--- a/glib/glib-autocleanups.h
+++ b/glib/glib-autocleanups.h
@@ -49,7 +49,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMainLoop, g_main_loop_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSource, g_source_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMappedFile, g_mapped_file_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMarkupParseContext, g_markup_parse_context_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(gchar, g_free)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GNode, g_node_destroy)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GOptionContext, g_option_context_free)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GOptionGroup, g_option_group_unref)


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