gdbusconnection: Fix a misleading comment

While backporting CVE-2024-34397 fixes I noticed that this comment
claimed that the reference count is immutable after construction, which
is clearly not true. In fact the reference count is the only
mutable field.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2024-05-10 14:11:32 +01:00 committed by Philip Withnall
parent 1bbf500fb8
commit 434c105bbe

View File

@ -289,8 +289,8 @@ call_destroy_notify (GMainContext *context,
typedef struct typedef struct
{ {
/* All fields are immutable after construction. */
gatomicrefcount ref_count; gatomicrefcount ref_count;
/* All remaining fields are immutable after construction. */
GDBusSignalCallback callback; GDBusSignalCallback callback;
gpointer user_data; gpointer user_data;
GDestroyNotify user_data_free_func; GDestroyNotify user_data_free_func;