timeout: Document fallibility of _dbus_timeout_new()

Like all other functions that allocate memory, libdbus assumes that this
can fail on OOM.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2025-05-16 11:52:11 +01:00
parent 51f72a14e0
commit 7b272b7d8b

View file

@ -60,7 +60,7 @@ struct DBusTimeout
* @param handler function to call when the timeout occurs.
* @param data data to pass to the handler
* @param free_data_function function to be called to free the data.
* @returns the new DBusTimeout object,
* @returns the new DBusTimeout object, or #NULL if out of memory
*/
DBusTimeout*
_dbus_timeout_new (int interval,