patch applied.

Leif Jackson wrote:
> I used the unit (check) testing to sort this one out. leaks about
> 48bytes each time someone opens a new box in the same session.
> 
> -leif
> 
> diff -urN dbmail-svn-2.2.4-2480.leif2/dbmail-imapsession.c
> dbmail-svn-2.2.4-2480.leif3/dbmail-imapsession.c
> --- dbmail-svn-2.2.4-2480.leif2/dbmail-imapsession.c    2007-03-24
> 23:02:51.000000000 -0400
> +++ dbmail-svn-2.2.4-2480.leif3/dbmail-imapsession.c    2007-03-25
> 00:42:54.000000000 -0400
> @@ -902,6 +902,11 @@
>                TRACE(TRACE_DEBUG, "unable to retrieve msginfo");
>                return -1;
>        }
> +
> +        //because other functions mayhave gotten msginfo
> +        if(self->msginfo)
> +                g_tree_destroy(self->msginfo);
> +
>        self->msginfo = msginfo;
> 
>        if (! self->ids)
> @@ -1761,6 +1766,11 @@
>        }
> 
>        self->mailbox = dbmail_mailbox_new(mailbox_idnr);
> +
> +       //because more than one mailbox can be open before session is
> destroyed
> +       if(self->msginfo)
> +               g_tree_destroy(self->msginfo);
> +
>        if ((self->msginfo = dbmail_imap_session_get_msginfo(self,
> self->mailbox->ids)) == NULL)
>                TRACE(TRACE_DEBUG, "unable to retrieve msginfo");
> 
> _______________________________________________
> Dbmail-dev mailing list
> [email protected]
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> 


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to