(fix) added local memory pool

pull/198/head
Ludovic Marcotte 2016-02-05 10:03:56 -05:00
parent d3f59ba621
commit dd19f380ad
1 changed files with 4 additions and 1 deletions

View File

@ -1318,8 +1318,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
inBuffer: (NSMutableString *) theBuffer
processed: (BOOL *) processed
{
id <DOMNodeList> aCommandDetails;
id <DOMElement> aCommand, element;
id <DOMNodeList> aCommandDetails;
NSAutoreleasePool *pool;
NSArray *allCommands;
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++)
{
pool = [[NSAutoreleasePool alloc] init];
element = [aCommandDetails objectAtIndex: j];
if ([element nodeType] == DOM_ELEMENT_NODE)
@ -1373,6 +1375,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*processed = YES;
}
}
DESTROY(pool);
}
}
}