(fix) added local memory pool
parent
d3f59ba621
commit
dd19f380ad
|
@ -1318,8 +1318,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
inBuffer: (NSMutableString *) theBuffer
|
inBuffer: (NSMutableString *) theBuffer
|
||||||
processed: (BOOL *) processed
|
processed: (BOOL *) processed
|
||||||
{
|
{
|
||||||
id <DOMNodeList> aCommandDetails;
|
|
||||||
id <DOMElement> aCommand, element;
|
id <DOMElement> aCommand, element;
|
||||||
|
id <DOMNodeList> aCommandDetails;
|
||||||
|
NSAutoreleasePool *pool;
|
||||||
NSArray *allCommands;
|
NSArray *allCommands;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
|
@ -1332,6 +1333,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
for (j = 0; j < [(id)aCommandDetails count]; j++)
|
for (j = 0; j < [(id)aCommandDetails count]; j++)
|
||||||
{
|
{
|
||||||
|
pool = [[NSAutoreleasePool alloc] init];
|
||||||
element = [aCommandDetails objectAtIndex: j];
|
element = [aCommandDetails objectAtIndex: j];
|
||||||
|
|
||||||
if ([element nodeType] == DOM_ELEMENT_NODE)
|
if ([element nodeType] == DOM_ELEMENT_NODE)
|
||||||
|
@ -1373,6 +1375,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*processed = YES;
|
*processed = YES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DESTROY(pool);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue