[glib/glib-2-54] GResource – Add note to documentation that the memory must be at least pointer aligned
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-54] GResource – Add note to documentation that the memory must be at least pointer aligned
- Date: Tue, 14 Nov 2017 14:59:25 +0000 (UTC)
commit 23373d7f7e0b4041fc4bf18f1e9fffe666eac9c0
Author: Sebastian Dröge <sebastian centricular com>
Date: Mon Nov 13 11:43:09 2017 +0100
GResource – Add note to documentation that the memory must be at least pointer aligned
https://bugzilla.gnome.org/show_bug.cgi?id=790030
gio/gresource.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/gresource.c b/gio/gresource.c
index 0d11d68..ed0e474 100644
--- a/gio/gresource.c
+++ b/gio/gresource.c
@@ -524,6 +524,9 @@ g_resource_new_from_table (GvdbTable *table)
* If you want to use this resource in the global resource namespace you need
* to register it with g_resources_register().
*
+ * Note: @data must be backed by memory that is at least pointer aligned.
+ * Otherwise this function will fail and exit the process.
+ *
* Returns: (transfer full): a new #GResource, or %NULL on error
*
* Since: 2.32
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]