gmain: Note that g_source_destroy() can be called multiple times
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Fri, 31 Jan 2014 12:16:15 +0000 (12:16 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 3 Feb 2014 07:55:44 +0000 (07:55 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=723360

glib/gmain.c

index 8fd961b..5606ccc 100644 (file)
@@ -1249,7 +1249,8 @@ g_source_destroy_internal (GSource      *source,
  * 
  * Removes a source from its #GMainContext, if any, and mark it as
  * destroyed.  The source cannot be subsequently added to another
- * context.
+ * context. It is safe to call this on sources which have already been
+ * removed from their context.
  **/
 void
 g_source_destroy (GSource *source)