Merge branch '1494-clear-pointer-docs' into 'master'

gmem: Clarify calling convention behaviour of g_clear_pointer() in docs

Closes #1494

See merge request GNOME/glib!258
This commit is contained in:
Emmanuele Bassi 2018-08-22 11:22:58 +00:00
commit 9a72ebe016

View File

@ -210,7 +210,11 @@ g_free (gpointer mem)
* pointer is set to %NULL.
*
* A macro is also included that allows this function to be used without
* pointer casts.
* pointer casts. This will mask any warnings about incompatible function types
* or calling conventions, so you must ensure that your @destroy function is
* compatible with being called as `GDestroyNotify` using the standard calling
* convention for the platform that GLib was compiled for; otherwise the program
* will experience undefined behaviour.
*
* Since: 2.34
**/