[glib] autocleanups: Add G*Array types
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] autocleanups: Add G*Array types
- Date: Fri, 20 Feb 2015 12:09:09 +0000 (UTC)
commit 9d6d30475b4039b3bd352e641c4266efeb14329c
Author: Colin Walters <walters verbum org>
Date: Thu Feb 19 18:31:29 2015 -0500
autocleanups: Add G*Array types
Not sure how these were omitted. Probably few people are really using
this yet...and we don't have test cases (that's in the other patch).
https://bugzilla.gnome.org/show_bug.cgi?id=744830
glib/glib-autocleanups.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/glib-autocleanups.h b/glib/glib-autocleanups.h
index df654e5..902e952 100644
--- a/glib/glib-autocleanups.h
+++ b/glib/glib-autocleanups.h
@@ -33,6 +33,9 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GHmac, g_hmac_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GIOChannel, g_io_channel_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GKeyFile, g_key_file_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GList, g_list_free)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GArray, g_array_unref)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GPtrArray, g_ptr_array_unref)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GByteArray, g_byte_array_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMainContext, g_main_context_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GMainLoop, g_main_loop_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GSource, g_source_unref)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]