Ignore:
Timestamp:
Feb 1, 2011, 1:59:39 PM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Indentation
  • Free libxml2's tree after use
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gaycko/trunk/src/parsing/parse.c

    r4720 r4723  
    2727        /* Actual parsing */
    2828        htmlDocPtr doc = htmlParseDoc((unsigned char*)output.bp, NULL);
    29 
    30 
    31         //tidyBufFree( &output );
    32         //tidyBufFree( &errbuf );
     29       
     30        /* Release tidy document */
    3331        tidyRelease( tdoc );
    3432
     33        /* Convert libxml2's tree to our own DOM */
     34        gDOM *dom = gaycko_convert_dom(doc);
    3535
    36         gDOM *dom = gaycko_convert_dom(doc);
     36        /* Free libxml2 tree */
     37        xmlFreeDoc(doc);
    3738
    3839        return dom;
Note: See TracChangeset for help on using the changeset viewer.