Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6228037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:19:13+00:00 2026-05-24T09:19:13+00:00

when i analyse my projetc, Xcode analyser find some potential leak of an object

  • 0

when i analyse my projetc, Xcode analyser find some potential leak of an object allocated
but the trouble is that i don’t know what it means and how to resolve this

here is a picture of my file,

enter image description here

and here is the code

#import "RoundRect.h"

//
// NewPathWithRoundRect
//
// Creates a CGPathRect with a round rect of the given radius.
//
CGPathRef NewPathWithRoundRect(CGRect rect, CGFloat cornerRadius)
{
    //
    // Create the boundary path
    //
    CGMutablePathRef path = CGPathCreateMutable();
    CGPathMoveToPoint(path, NULL,
        rect.origin.x,
        rect.origin.y + rect.size.height - cornerRadius);

    // Top left corner
    CGPathAddArcToPoint(path, NULL,
        rect.origin.x,
        rect.origin.y,
        rect.origin.x + rect.size.width,
        rect.origin.y,
        cornerRadius);

    // Top right corner
    CGPathAddArcToPoint(path, NULL,
        rect.origin.x + rect.size.width,
        rect.origin.y,
        rect.origin.x + rect.size.width,
        rect.origin.y + rect.size.height,
        cornerRadius);

    // Bottom right corner
    CGPathAddArcToPoint(path, NULL,
        rect.origin.x + rect.size.width,
        rect.origin.y + rect.size.height,
        rect.origin.x,
        rect.origin.y + rect.size.height,
        cornerRadius);

    // Bottom left corner
    CGPathAddArcToPoint(path, NULL,
        rect.origin.x,
        rect.origin.y + rect.size.height,
        rect.origin.x,
        rect.origin.y,
        cornerRadius);

    // Close the path at the rounded rect
    CGPathCloseSubpath(path);

    return path;

}

Thanks for your very useful help.

PS: all my projet works fine in the iphone simulator
it’s an app, with a tabbar and 4 section, two section are empty yet,
and the two other section are tableview with detail view (data are picked from a plist)
When i test the app on my device, the two empty sections works perfectly, and juste one of the two tableview display the detailview, the second tableview witch works in the simulator did not push the detailview,
what made me mad is that it works fine this morning

A question:
is a plist limited by the data it contain, i mean that if a have a big list for example with 500 dictionary items, can this trouble the good display of the app ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T09:19:14+00:00Added an answer on May 24, 2026 at 9:19 am

    When returning a CF/CG allocation, the function should be prefixed with Create.

    I.e. rename your function CreatePathWithRoundRect() and the analyzer should stop complaining.

    Note that you don’t want to collude autorelease with CG/CF types; that is, follow the patterns perpetuated by the framework containing the type of the object returned. Thus, returning a +1 retain count object from that function makes sense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just configured Sonar to analyse my android project but realized that only the
I have to analyse some existing Erlang code. Does anybody knows about a tool
Is there a tool that can analyse my .NET code (C# and VB.NET )
I'm planning to write a program in Ruby to analyse some data which has
I was thinking of writing a PHP script that would analyse a CMS'd page's
Hi I need to graph some arrays to analyse signals, I have a cocoa
I have written some python scripts that take advantage of pysvn to analyze a
All JS minifiers that I can find work by a combination of whitespace elimination,
I have a project that I created by using Xcode's Single View Application template.
I cannot seem to structure this method so that when I analyse the project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.