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 3499418
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:36:33+00:00 2026-05-18T12:36:33+00:00

When compiling my app with LLVM, just about the only errors I get are:

  • 0

When compiling my app with LLVM, just about the only errors I get are:

Potential leak of an object allocated on line xxx

This is in response to code creating and pushing a new UIViewController onto a UINavigationController:

FooViewController *vc = [[FooViewController alloc] initWithNibName:@"FooViewController" bundle:nil];
vc.title = @"FooFoo";
[self.navigationController pushViewController:vc animated:YES];

So I guess it’s suggesting I put this after the last line:

[vc release];

But whenever I do that, it causes errors EXC_BAD_ACCESS. I don’t see why I would release it anyway, since I want it to remain in memory, don’t I? How would I get around this to make the LLVM compiler happy?

  • 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-18T12:36:34+00:00Added an answer on May 18, 2026 at 12:36 pm

    Your navigation controller will retain the view controller, so there’s no need for you to do so. (i.e.: The [vc release]; line should be in there.)

    As such, I’m guessing the problem with the EXC_BAD_ACCESS lies elsewhere, but it’s hard to tell without some additional surrounding information.

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

Sidebar

Related Questions

When compiling an ASP.NET 2.0 App names MySite for deployment I get a series
I get the following error when compiling my app. warning: class 'ConfigureViewController' does not
I'm trying to get a Qt app compiling for Mac running Snow Leopard, using
I'm compiling Pythonika on Snow Leopard and the errors I get suggest that I'm
Compiling this lines long int sz; char tmpret[128]; //take substring of c, translate in
When compiling my C++ .Net application I get 104 warnings of the type: Warning
When compiling this: char *str = [[NSString stringWithFormat:@%i days and %i hours, days, hours]
I have built libshared.so with is dependent on libshared_dependent.so Now, I am compiling app.bin
When I tried compiling my app for OS 3 I encountered an the following
I'm compiling an app for a device where the architecture does not support sse

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.