/[imapfilter]/imapfilter/data.c
ViewVC logotype

Diff of /imapfilter/data.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.39 by lefcha, Wed May 14 18:57:03 2003 UTC revision 1.40 by lefcha, Mon May 19 22:37:20 2003 UTC
# Line 299  set_mbox(char *name) Line 299  set_mbox(char *name)
299    
300          for (m = cur_acct->mboxes; m != NULL; m = m->next)          for (m = cur_acct->mboxes; m != NULL; m = m->next)
301                  if (!strcmp(m->name, s))                  if (!strcmp(m->name, s))
302                      return m;                          return m;
303    
304          node = (mbox_t *) create_node(sizeof(mbox_t));          node = (mbox_t *) create_node(sizeof(mbox_t));
305    
# Line 769  link_mbox_filter(filter_t * cf, mboxgrp_ Line 769  link_mbox_filter(filter_t * cf, mboxgrp_
769    
770    
771  /*  /*
772     * Free allocated memory of all data structures.
773     */
774    void
775    destroy_all(void)
776    {
777            destroy_accounts(accounts);
778            accounts = NULL;
779            destroy_filters(filters);
780            filters = NULL;
781            destroy_mboxgrps(mboxgrps);
782            mboxgrps = NULL;
783    }
784    
785    
786    /*
787   * Free allocated memory of data structures that are not needed anymore.   * Free allocated memory of data structures that are not needed anymore.
788   */   */
789  void  void
790  destroy_data(void)  destroy_unneeded(void)
791  {  {
792          destroy_mboxgrps(mboxgrps);          destroy_mboxgrps(mboxgrps);
793            mboxgrps = NULL;
794  }  }
795    
796    

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26