Memory Leaks in Instance method objective 
<p>i had a problem with leak. In this editingSessionArray
in this line below:</p>

<pre><code>NSMutableArray *sessionsArray = [[NSMutableArray  alloc] initWithArray:[BBWorkoutSession fetchSessionDetail1:selectedWorkoutId]];
</code></pre>

<p>say that Method returns a objective-c object with a +1 retain count (owing reference):</p>

<p>were did i made the mistake.</p>

<p>Please help me</p>

<pre><code>-(void)editingSessionsArray
{
    [[BBAppController sharedInstance] updateLogWithString:[NSString stringWithFormat:@"BEGIN : %s", __PRETTY_FUNCTION__]];
    if(selectedWorkoutId) { 
    //  NSLog(@"the section id is : %@",selectedWorkoutId);
    NSMutableArray *sessionsArray = [[NSMutableArray  alloc] initWithArray:[BBWorkoutSession fetchSessionDetail1:selectedWorkoutId]];

    /* condition for checking the selected workout id is existing or not */

    if ([workOutSessionData count]) {
        for (int i= 0; i&lt; [workOutSessionData count] ; i++) {
            if ([[[workOutSessionData objectAtIndex:i] allKeys] containsObject:[NSString stringWithFormat:@"%@",selectedWorkoutId]]) {
                [workOutSessionData removeObjectAtIndex:i]; 

                return;
            }
        }
    }

    /* If console comes here the workout id is not existed in the main array */


    [mainDict  setValue:sessionsArray forKey:[NSString stringWithFormat:@"%@",selectedWorkoutId]];

    NSMutableDictionary *workoutsList = [[NSMutableDictionary alloc]initWithObjectsAndKeys:sessionsArray,[NSString stringWithFormat:@"%@",selectedWorkoutId],nil] ;
    [workOutSessionData addObject:workoutsList];
    [workoutsList release];
    [sessionsArray release];
    }
    [[BBAppController sharedInstance] updateLogWithString:[NSString stringWithFormat:@"END : %s", __PRETTY_FUNCTION__]];
}
</code></pre>
