mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gcancellable: Clarify that GSources hold references to GCancellables
Clarify in the documentation that a GSource created with g_cancellable_source_new() must be explicitly removed from its GMainContext before the GCancellable can be finalised. This could be a common way of leaking GCancellables. https://bugzilla.gnome.org/show_bug.cgi?id=737259
This commit is contained in:
parent
92d6735898
commit
203fe3b8a8
@ -722,6 +722,8 @@ static GSourceFuncs cancellable_source_funcs =
|
||||
* For convenience, you can call this with a %NULL #GCancellable,
|
||||
* in which case the source will never trigger.
|
||||
*
|
||||
* The new #GSource will hold a reference to the #GCancellable.
|
||||
*
|
||||
* Returns: (transfer full): the new #GSource.
|
||||
*
|
||||
* Since: 2.28
|
||||
|
Loading…
Reference in New Issue
Block a user