mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Clarify g_propagate_error docs
I just ran into a bug that was caused by having src being a persistent GError* that was not cleared after propagating it.
This commit is contained in:
parent
0bfea5e772
commit
26c66ab1b9
@ -604,6 +604,10 @@ g_set_error_literal (GError **err,
|
||||
*
|
||||
* If @dest is %NULL, free @src; otherwise, moves @src into *@dest.
|
||||
* The error variable @dest points to must be %NULL.
|
||||
*
|
||||
* Note that @src is no longer valid after this call. If you want
|
||||
* to keep using the same GError*, you need to set it to %NULL
|
||||
* after calling this function on it.
|
||||
*/
|
||||
void
|
||||
g_propagate_error (GError **dest,
|
||||
|
Loading…
Reference in New Issue
Block a user