mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
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:
parent
1bbf500fb8
commit
434c105bbe
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user