How i solving memory leak problem?
<p>i developing an application in which i found memory leak in following method how i remove leak?</p>

<pre><code>- (id)initWithString:(NSString *)str attributes:(NSDictionary *)attributes
{

    if ((self = [super init]))
    {
        _buffer = [str mutableCopy];
        _attributes = [NSMutableArray arrayWithObjects:[ZAttributeRun attributeRunWithIndex:0 attributes:attributes], nil];
    }

    return self;

}
</code></pre>

<p>I founding leak near this line "<strong>_buffer = [str mutableCopy]</strong>;" </p>

<p>In allocation stack trace i finding simultaneous memory allocation increasing as a CFString.</p>

<p>Thanks.  </p>
