mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
GSocketService: clarify transfer semantics of incoming connections
The @connection parameter to the ::incoming signal is (transfer none), so you need to ref it if you want to keep it. https://bugzilla.gnome.org/show_bug.cgi?id=647746
This commit is contained in:
parent
d5dc79c0b0
commit
c2f670ef49
@ -260,6 +260,9 @@ g_socket_service_class_init (GSocketServiceClass *class)
|
||||
* handling of @connection, but may not block; in essence,
|
||||
* asynchronous operations must be used.
|
||||
*
|
||||
* @connection will be unreffed once the signal handler returns, so
|
||||
* you need to ref it yourself if you are planning to use it.
|
||||
*
|
||||
* Returns: %TRUE to stop other handlers from being called
|
||||
*
|
||||
* Since: 2.22
|
||||
|
Loading…
Reference in New Issue
Block a user