gsocket: Document that g_socket_create_source() holds a socket ref
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 23 Jun 2014 09:12:08 +0000 (10:12 +0100)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 23 Jun 2014 15:24:47 +0000 (16:24 +0100)
commit00e733315de2c2588b0b5b95e02fcd29bb259cb1
tree42116cfe815df8783335d20df9293a6fc5eb5c10
parent248ca727820923c28a39d2e0ee40db54c141adea
gsocket: Document that g_socket_create_source() holds a socket ref

This is quite important, as it means you can safely let the GSocket drop
out of scope while maintaining a reference to the GSource, and the
socket will remain open. That means fewer closure structures, simpler
code, and fewer allocations.

https://bugzilla.gnome.org/show_bug.cgi?id=732081
gio/gsocket.c