[telepathy-mission-control/master] Temporarily ref dispatcher context around a call into user code

Simon McVittie simon.mcvittie at collabora.co.uk
Thu May 28 05:35:04 PDT 2009


It should never be possible for it to lose its last reference there.
---
 src/mcd-dispatcher.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 6e177da..cbcd730 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -2855,7 +2855,9 @@ mcd_dispatcher_context_process (McdDispatcherContext * context, gboolean result)
 	    context->next_func_index++;
 	    
             DEBUG ("Next filter");
+            mcd_dispatcher_context_ref (context, "CTXREF10");
 	    filter->func (context, filter->user_data);
+            mcd_dispatcher_context_unref (context, "CTXREF10");
 	    return; /*State machine goes on...*/
 	}
 	else
-- 
1.5.6.5




More information about the telepathy-commits mailing list