[telepathy-mission-control/master] McdDispatcher: fix mis-pairing of ref annotations

Simon McVittie simon.mcvittie at collabora.co.uk
Thu May 28 06:11:29 PDT 2009


---
 src/mcd-dispatcher.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index d6465f2..34aa1d2 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -1561,19 +1561,21 @@ _mcd_dispatcher_enter_state_machine (McdDispatcher *dispatcher,
                                 context);
     }
 
-    mcd_dispatcher_context_ref (context, "CTXREF01");
-
     if (priv->filters != NULL)
     {
         DEBUG ("entering state machine for context %p", context);
 
         sp_timestamp ("invoke internal filters");
+
+        mcd_dispatcher_context_ref (context, "CTXREF01");
 	mcd_dispatcher_context_process (context, TRUE);
     }
     else
     {
         DEBUG ("No filters found for context %p, "
                "starting the channel handler", context);
+
+        mcd_dispatcher_context_ref (context, "CTXREF09");
 	mcd_dispatcher_run_clients (context);
     }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list