• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is it 'normal' that scrolling in a UIScrollView leaks some bytes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it 'normal' that scrolling in a UIScrollView leaks some bytes?


  • Subject: Is it 'normal' that scrolling in a UIScrollView leaks some bytes?
  • From: "Richard Altenburg (Brainchild)" <email@hidden>
  • Date: Tue, 24 Jul 2012 19:28:07 +0200

I can answer it myself: no, it should not be considered normal that an app leaks memory, and that is why it makes me quite nervous.

What happens is this:

In an iPad / iPhone project I present a few UIImageViews on-screen. They are contained within their own UIScrollViews as I want to zoom in and out and scroll on them. I still have to work in the iOS Simulator because I am waiting for approval to provision my devices, but still testing seems to work fine. I can display images inside the views, and using keyboard modifiers I can emulate the standard gestures for zooming and scrolling, which al works perfectly.

Sometimes, just sometimes, when I scroll an image beyond its content size (you can see the animating bouncing back and forth of the image inside the UIScrollView), Instruments reports a memory leak of only small number of bytes. These are not leaked images I created, it must be something deeper within the UIKit I guess.

It tells me something like this:


Leaked Object: Malloc 48 Bytes
Address: any pointer to the leaked 48 Bytes
Size: 48 Bytes
Responsible Library: libsystem_c.dylib
Responsible Frame: strdup


Do you guys recognize this behavior? And should I get that nervous, or is it not an issue at all? (That is highly unlikely but I can ask, right?)

Thank you for any insights.


[[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards];

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is it 'normal' that scrolling in a UIScrollView leaks some bytes?
      • From: "Richard Altenburg (Brainchild)" <email@hidden>
    • Re: Is it 'normal' that scrolling in a UIScrollView leaks some bytes?
      • From: Eeyore <email@hidden>
  • Prev by Date: Re: How to get a Service into the "Search" group?
  • Next by Date: Re: Is it 'normal' that scrolling in a UIScrollView leaks some bytes?
  • Previous by thread: Re: Forcing Core Data to save attribute changed behind its back?
  • Next by thread: Re: Is it 'normal' that scrolling in a UIScrollView leaks some bytes?
  • Index(es):
    • Date
    • Thread