[telepathy-mission-control/master] McdDispatcher: don't keep CTXREF15 to the dispatcher context
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Nov 2 06:41:44 PST 2009
Now that the McdDispatchOperation is self-contained, the dispatcher
context can be freed as soon as C filters have been run.
---
src/mcd-dispatcher.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 3d6943a..8ae82a5 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -531,16 +531,6 @@ on_operation_finished (McdDispatchOperation *operation,
}
}
-static void
-mcd_dispatcher_op_ready_to_dispatch_cb (McdDispatchOperation *operation,
- McdDispatcherContext *context)
-{
- g_signal_handlers_disconnect_by_func (operation,
- mcd_dispatcher_op_ready_to_dispatch_cb, context);
-
- mcd_dispatcher_context_unref (context, "CTXREF15");
-}
-
/* ownership of @channels is stolen */
static void
_mcd_dispatcher_enter_state_machine (McdDispatcher *dispatcher,
@@ -607,11 +597,6 @@ _mcd_dispatcher_enter_state_machine (McdDispatcher *dispatcher,
G_CALLBACK (on_operation_finished), dispatcher);
}
- mcd_dispatcher_context_ref (context, "CTXREF15");
- g_signal_connect (context->operation, "ready-to-dispatch",
- G_CALLBACK (mcd_dispatcher_op_ready_to_dispatch_cb),
- context);
-
DEBUG ("entering state machine for context %p", context);
sp_timestamp ("invoke internal filters");
--
1.5.6.5
More information about the telepathy-commits
mailing list