mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
gdbusprivate: Improve docs on message ownership in MessageToWriteData
This doesn’t introduce any functional changes, but should make the code a little clearer. Drive-by improvements while trying to debug #1264. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1264
This commit is contained in:
parent
90af20d950
commit
ed7044b5f3
@ -889,7 +889,7 @@ _g_dbus_worker_do_initial_read (gpointer data)
|
||||
struct _MessageToWriteData
|
||||
{
|
||||
GDBusWorker *worker;
|
||||
GDBusMessage *message;
|
||||
GDBusMessage *message; /* (owned) */
|
||||
gchar *blob;
|
||||
gsize blob_size;
|
||||
|
||||
@ -901,8 +901,7 @@ static void
|
||||
message_to_write_data_free (MessageToWriteData *data)
|
||||
{
|
||||
_g_dbus_worker_unref (data->worker);
|
||||
if (data->message)
|
||||
g_object_unref (data->message);
|
||||
g_clear_object (&data->message);
|
||||
g_free (data->blob);
|
||||
g_slice_free (MessageToWriteData, data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user