GNOME Bugzilla – Bug 732081
gsocket: Document that g_socket_create_source() holds a socket ref
Last modified: 2014-06-23 15:25:26 UTC
Trivial patch attached.
Created attachment 278976 [details] [review] 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.
Pushed, thanks. Attachment 278976 [details] pushed as 00e7333 - gsocket: Document that g_socket_create_source() holds a socket ref