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

This always confuses people.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-06-07 11:26:47 +01:00
parent 4e00fdea9b
commit 71973c722a

View File

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