I am getting these huge leaks from this app and I cant seem to solve this issue.

The responsible Frame is CGDataProviderCreateWithCopyOfData

Here are the leaks.

![enter image description here](https://i.stack.imgur.com/QajyH.png)
![enter image description here](https://i.stack.imgur.com/jtsMi.png)

**EDIT**

The lines I believe are causing the issue

```
  CGRect frame = CGRectMake(0, 0, 320, 49);
    UIView *myview = [[UIView alloc] initWithFrame:frame];
    myview.backgroundColor = [UIColor blackColor];
    [myview addSubview:[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"tabbar-3.png"]]];
    if ([[[UIDevice currentDevice] systemVersion] floatValue] < 5)  {
        [[tabController tabBar] insertSubview:myview atIndex:0];
    }else{
        [[tabController tabBar] insertSubview:myview atIndex:1];
    }

    if ([UITabBar instancesRespondToSelector:@selector(setSelectedImageTintColor:)]){
        [[tabController tabBar] setSelectedImageTintColor:[UIColor colorWithRed:189.f/255 green:224.f/255.f blue:2.f/255.f alpha:1]];

        [[tabController tabBar] setTintColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"g1.png"]]];

        [[UITabBar appearance] setSelectedImageTintColor:[UIColor colorWithRed:189.f/255 green:224.f/255.f blue:2.f/255.f alpha:1]];

        [[tabController tabBar] setSelectionIndicatorImage:[UIImage imageNamed:@"hover.png"]];
        [[UITabBar appearance] setSelectionIndicatorImage:[UIImage imageNamed:@"hover.png"]];

        for (int i=0; i<[tabController.viewControllers count]; i++) {
            UIViewController *tab= [tabController.viewControllers objectAtIndex:i];

            [tab.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                [UIColor colorWithRed:189.f/255 green:224.f/255.f blue:2.f/255.f alpha:1], UITextAttributeTextColor, 
                                                [NSValue valueWithUIOffset:UIOffsetMake(0,0)], UITextAttributeTextShadowOffset, 
                                                [UIFont fontWithName:@"Lucida Grande-Bold" size:10.0], UITextAttributeFont, nil]
                                      forState:UIControlStateSelected];
        }

```

are causing this issue. I have been tasked to fix these leaks but need help fixing these ones. Any help would be great.

Thanks