Merge branch 'source-destroy-docs' into 'master'

gmain: Clarify that g_source_destroy() doesn’t drop a reference

See merge request GNOME/glib!901
This commit is contained in:
Sebastian Dröge 2019-06-11 11:16:44 +00:00
commit 943de74113

View File

@ -1266,7 +1266,10 @@ g_source_destroy_internal (GSource *source,
* destroyed. The source cannot be subsequently added to another * destroyed. The source cannot be subsequently added to another
* context. It is safe to call this on sources which have already been * context. It is safe to call this on sources which have already been
* removed from their context. * removed from their context.
**/ *
* This does not unref the #GSource: if you still hold a reference, use
* g_source_unref() to drop it.
*/
void void
g_source_destroy (GSource *source) g_source_destroy (GSource *source)
{ {