Merge lp:~ubuntu-multiseat/lightdm/safe-login1-signal-subscribe into lp:lightdm

Proposed by Laércio de Sousa
Status: Merged
Approved by: Robert Ancell
Approved revision: 2032
Merged at revision: 2032
Proposed branch: lp:~ubuntu-multiseat/lightdm/safe-login1-signal-subscribe
Merge into: lp:lightdm
Diff against target: 14 lines (+2/-2)
1 file modified
src/login1.c (+2/-2)
To merge this branch: bzr merge lp:~ubuntu-multiseat/lightdm/safe-login1-signal-subscribe
Reviewer Review Type Date Requested Status
Robert Ancell Approve
Review via email: mp+232283@code.launchpad.net

Description of the change

Make g_dbus_connection_signal_subscribe() call in login1.c a little bit safer (really?)

TBH I'm not sure this change is really needed or safer, but, for some reason, this is the way signal subscription is done in GDM [1], so I'm proposing it here just in case.

[1] https://git.gnome.org/browse/gdm/tree/daemon/gdm-local-display-factory.c

To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) wrote :

It shouldn't be required since we unsubscribe the signal when we finalize the object but it can't hurt.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/login1.c'
2--- src/login1.c 2014-08-22 01:56:45 +0000
3+++ src/login1.c 2014-08-26 18:26:51 +0000
4@@ -348,8 +348,8 @@
5 NULL,
6 G_DBUS_SIGNAL_FLAGS_NONE,
7 signal_cb,
8- service,
9- NULL);
10+ g_object_ref (service),
11+ g_object_unref);
12
13 result = g_dbus_connection_call_sync (service->priv->connection,
14 LOGIN1_SERVICE_NAME,

Subscribers

People subscribed via source and target branches