deps/kb_meme/meme-5.0.1/src/html-monolith.c
/*
 * htmlwr_destroy
 * Destroys a html monolith writer.
 */
htmlwr_destroy
Destroys a html monolith writer.
htmlwr_destroy Destroys a html monolith writer .
void htmlwr_destroy(HTMLWR_T* htmlwr) {
  free(htmlwr->search_dir);
  fclose(htmlwr->src);
  rbtree_destroy(htmlwr->replace);
  buf_destroy(htmlwr->buffer);
  bmstr_destroy(htmlwr->landmarks[0]);
  bmstr_destroy(htmlwr->landmarks[1]);
  bmstr_destroy(htmlwr->landmarks[2]);
  regfree(&(htmlwr->source_re));
  if (htmlwr->json_writer) jsonwr_close(htmlwr->json_writer);
  if (htmlwr->autoclose && htmlwr->dest) fclose(htmlwr->dest);
  memset(htmlwr, 0, sizeof(HTMLWR_T));
  free(htmlwr);
}
void htmlwr_destroy ( HTMLWR_T * htmlwr ) { free ( htmlwr -> search_dir ) ; fclose ( htmlwr -> src ) ; rbtree_destroy ( htmlwr -> replace ) ; buf_destroy ( htmlwr -> buffer ) ; bmstr_destroy ( htmlwr -> landmarks [ 0 ] ) ; bmstr_destroy ( htmlwr -> landmarks [ 1 ] ) ; bmstr_destroy ( htmlwr -> landmarks [ 2 ] ) ; regfree ( & ( htmlwr -> source_re ) ) ; if ( htmlwr -> json_writer ) jsonwr_close ( htmlwr -> json_writer ) ; if ( htmlwr -> autoclose && htmlwr -> dest ) fclose ( htmlwr -> dest ) ; memset ( htmlwr , 0 , sizeof ( HTMLWR_T ) ) ; free ( htmlwr ) ; }
htmlwr_destroy
 Destroys a html monolith writer.
htmlwr_destroy Destroys a html monolith writer .