Fix memory leaks and mistypes
authorteodor <teodor>
Thu, 2 Oct 2008 15:06:16 +0000 (15:06 +0000)
committerteodor <teodor>
Thu, 2 Oct 2008 15:06:16 +0000 (15:06 +0000)
template.c

index d85a610..45b366b 100644 (file)
@@ -835,7 +835,7 @@ setTemplateValue( Template tmpl, char *key) {
                if ( varval == NULL )
                        return TVAR_NOROW;
 
-               tassert( (varval->type & TND_GLOBAL) == 0 );
+               tassert( (varval->flags & TND_GLOBAL) == 0 );
        } 
 
        if ( varval->flags & TND__SPECIALMASK )
@@ -1085,6 +1085,8 @@ printNode( Template tmpl, TemplateNode node ) {
                                        }
                                        printNode( tmpl, node->nodeData.loop.bodyNode );
                                }
+
+                               GListFree( instance->rowValues );
                        }
                        break;
                case    ConditionNode: