Merge lp:~robert-ancell/lightdm/remove-more-sources into lp:lightdm

Proposed by Robert Ancell
Status: Merged
Approved by: Robert Ancell
Approved revision: 1910
Merged at revision: 1910
Proposed branch: lp:~robert-ancell/lightdm/remove-more-sources
Merge into: lp:lightdm
Diff against target: 58 lines (+6/-6)
3 files modified
src/process.c (+1/-4)
src/unity-system-compositor.c (+1/-1)
src/xdmcp-server.c (+4/-1)
To merge this branch: bzr merge lp:~robert-ancell/lightdm/remove-more-sources
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Robert Ancell Approve
Review via email: mp+209167@code.launchpad.net

Commit message

More carefully remove GSources

To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/process.c'
--- src/process.c 2014-02-25 22:12:22 +0000
+++ src/process.c 2014-03-04 04:30:35 +0000
@@ -149,6 +149,7 @@
149{149{
150 Process *process = data;150 Process *process = data;
151151
152 process->priv->watch = 0;
152 process->priv->exit_status = status;153 process->priv->exit_status = status;
153154
154 if (WIFEXITED (status))155 if (WIFEXITED (status))
@@ -156,10 +157,6 @@
156 else if (WIFSIGNALED (status))157 else if (WIFSIGNALED (status))
157 g_debug ("Process %d terminated with signal %d", pid, WTERMSIG (status));158 g_debug ("Process %d terminated with signal %d", pid, WTERMSIG (status));
158159
159 if (process->priv->watch)
160 g_source_remove (process->priv->watch);
161 process->priv->watch = 0;
162
163 if (process->priv->quit_timeout)160 if (process->priv->quit_timeout)
164 g_source_remove (process->priv->quit_timeout);161 g_source_remove (process->priv->quit_timeout);
165 process->priv->quit_timeout = 0; 162 process->priv->quit_timeout = 0;
166163
=== modified file 'src/unity-system-compositor.c'
--- src/unity-system-compositor.c 2014-02-25 22:12:22 +0000
+++ src/unity-system-compositor.c 2014-03-04 04:30:35 +0000
@@ -472,7 +472,7 @@
472 if (self->priv->from_compositor_watch) 472 if (self->priv->from_compositor_watch)
473 g_source_remove (self->priv->from_compositor_watch);473 g_source_remove (self->priv->from_compositor_watch);
474 g_free (self->priv->read_buffer);474 g_free (self->priv->read_buffer);
475 if (self->priv->timeout_source != 0)475 if (self->priv->timeout_source)
476 g_source_remove (self->priv->timeout_source);476 g_source_remove (self->priv->timeout_source);
477477
478 G_OBJECT_CLASS (unity_system_compositor_parent_class)->finalize (object);478 G_OBJECT_CLASS (unity_system_compositor_parent_class)->finalize (object);
479479
=== modified file 'src/xdmcp-server.c'
--- src/xdmcp-server.c 2013-07-24 03:02:30 +0000
+++ src/xdmcp-server.c 2014-03-04 04:30:35 +0000
@@ -116,6 +116,8 @@
116static gboolean116static gboolean
117session_timeout_cb (XDMCPSession *session)117session_timeout_cb (XDMCPSession *session)
118{118{
119 session->priv->inactive_timeout = 0;
120
119 g_debug ("Timing out unmanaged session %d", session->priv->id);121 g_debug ("Timing out unmanaged session %d", session->priv->id);
120 g_hash_table_remove (session->priv->server->priv->sessions, GINT_TO_POINTER ((gint) session->priv->id));122 g_hash_table_remove (session->priv->server->priv->sessions, GINT_TO_POINTER ((gint) session->priv->id));
121 return FALSE;123 return FALSE;
@@ -516,7 +518,8 @@
516 if (result)518 if (result)
517 {519 {
518 /* Cancel the inactive timer */520 /* Cancel the inactive timer */
519 g_source_remove (session->priv->inactive_timeout);521 if (session->priv->inactive_timeout)
522 g_source_remove (session->priv->inactive_timeout);
520523
521 session->priv->started = TRUE;524 session->priv->started = TRUE;
522 }525 }

Subscribers

People subscribed via source and target branches