* src/modest-mail-operation.c
authorAlberto Garcia <agarcia@igalia.com>
Wed, 12 Mar 2008 14:04:34 +0000 (14:04 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Wed, 12 Mar 2008 14:04:34 +0000 (14:04 +0000)
(modest_mail_operation_get_msgs_full): Fix memory leak
Fixes NB#80198

pmo-trunk-r4301

src/modest-mail-operation.c

index 7c522bc..6f7d2ab 100644 (file)
@@ -2271,6 +2271,7 @@ modest_mail_operation_get_msgs_full (ModestMailOperation *self,
                        has_uncached_messages = TRUE;
                g_object_unref (header);
        }       
+       g_object_unref (iter);
        priv->op_type = has_uncached_messages?MODEST_MAIL_OPERATION_TYPE_RECEIVE:MODEST_MAIL_OPERATION_TYPE_OPEN;
 
        /* Get account and set it into mail_operation */