CamelIMAPXServer: Rework some reference counting issues.
authorMatthew Barnes <mbarnes@redhat.com>
Fri, 23 Mar 2012 18:49:44 +0000 (14:49 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Sun, 25 Mar 2012 22:44:46 +0000 (18:44 -0400)
commit7308d9d2cb56365186fa85055a5aa7b85af00435
tree35fcbe057176b904cde0ccf5d31fcfed12099b89
parent8f877c10057a485739c53fbbf7b4f6640dd7ba8f
CamelIMAPXServer: Rework some reference counting issues.

Commit 7efd1e7969c70fb497febd455591041994bbf90b was incorrect.

The command DOES need to be removed from 'is->queue' before starting
it, however we need to hold a reference on the command so it does not
get finalized while removing it from 'is->queue'.
camel/providers/imapx/camel-imapx-server.c