FACT++  1.0
int delete_browser ( BROWSER browserp)

Definition at line 627 of file webDid.c.

References delete_curr_service(), Memory::free(), sitem::n_browsers, bitem::service_format_ptr, bitem::servicep, and sll_remove().

Referenced by check_browser().

628 {
629  CURR_SERVICE *servicep;
630 
631  if((servicep = browserp->servicep))
632  {
633  servicep->n_browsers--;
634  if(!servicep->n_browsers)
635  delete_curr_service(servicep);
636  }
637  if(browserp->service_format_ptr)
638  free(browserp->service_format_ptr);
639  sll_remove((SLL *)Browser_head, (SLL *)browserp);
640  free(browserp);
641  return(1);
642 }
int n_browsers
Definition: webDid.c:44
Definition: webDid.c:30
CURR_SERVICE * servicep
Definition: webDid.c:73
BROWSER * Browser_head
Definition: webDid.c:88
char * service_format_ptr
Definition: webDid.c:80
Definition: dim.h:536
int sll_remove(SLL *head, SLL *item)
Definition: sll.c:74
void free(void *mem)
int delete_curr_service(CURR_SERVICE *servicep)
Definition: webDid.c:612

+ Here is the call graph for this function:

+ Here is the caller graph for this function: