Re: Folder creation does not update folder list



On Wed, 2007-07-11 at 18:12 +0200, Armin Burgmeier wrote:
> +       /* So that the next call to get_folders includes the newly
> +        * created folder */
> +       if(!priv->iter_parented && priv->iter)
> +               camel_folder_info_free (priv->iter);

I know you are going to hate it, but you can't free the iter. It's
better to let it leak in this case (it's not really leaked, as the
parent account will take care of the node).

> +       priv->iter = camel_store_get_folder_info (store,
> priv->folder_name, 0, &subex);
> +       priv->iter_parented = FALSE 

Putting it to FALSE shouldn't be necessary.

-- 
Philip Van Hoof, software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://www.pvanhoof.be/blog







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]