ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

static void xsltFreeCompMatch ( xsltCompMatchPtr  comp) [static]

xsltFreeCompMatch: : an XSLT comp

Free up the memory allocated by

Definition at line 176 of file pattern.c.

Referenced by xsltAddTemplate(), and xsltFreeCompMatchList().

                                         {
    xsltStepOpPtr op;
    int i;

    if (comp == NULL)
    return;
    if (comp->pattern != NULL)
    xmlFree((xmlChar *)comp->pattern);
    if (comp->nsList != NULL)
    xmlFree(comp->nsList);
    for (i = 0;i < comp->nbStep;i++) {
    op = &comp->steps[i];
    if (op->value != NULL)
        xmlFree(op->value);
    if (op->value2 != NULL)
        xmlFree(op->value2);
    if (op->value3 != NULL)
        xmlFree(op->value3);
    if (op->comp != NULL)
        xmlXPathFreeCompExpr(op->comp);
    }
    xmlFree(comp->steps);
    memset(comp, -1, sizeof(xsltCompMatch));
    xmlFree(comp);
}

Generated on Sat May 26 2012 04:48:48 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.