• 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
Untitled Document Leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Untitled Document Leak


  • Subject: Untitled Document Leak
  • From: Richard Somers <email@hidden>
  • Date: Mon, 7 Dec 2009 09:40:38 -0700

I have the following memory leak in my application. It is mostly always present but sometimes it will go away. It appears to be associated with opening an untitled document. Does anyone know how to get rid of this?

The leak does not grow but stays constant at 186 bytes. Not a big deal but is is annoying.

Leak as reported by MallocDebug (inverted form).

186 bytes in 1 node:
0x6b8b4
CSMemNewPtr
CSMemNewHandle
QDUnflattenPixPat
_NSReadThemePatternFromRsrc
_NSReadThemeImageFromplutEntry
GetThemeImage
+[NSColor _controlColor]
-[NSDynamicSystemColor recacheColor]
-[NSDynamicSystemColor initWithSelector:]
+[NSColor controlColor]
-[NSTextFieldCell drawsBackground]
-[NSTextFieldCell interiorBackgroundStyle]
-[NSCell _textAttributes]
-[NSTextFieldCell _textAttributes]
__NSGetStringAndAttributesFromTextCell
_NSGetTextCellBoundingRect
-[NSCell cellSizeForBounds:]
-[NSTextFieldCell cellSizeForBounds:]
-[NSCell cellSize]
-[NSTitledFrame _titleCellSize]
-[NSThemeFrame _defaultTitlebarTitleRect]
-[NSWindow _customTitleFrame]
-[NSThemeFrame _titlebarTitleRect]
-[NSTitledFrame setTitle:]
-[NSWindow _dosetTitle:andDefeatWrap:]
-[NSWindowController window]
-[NSWindowController showWindow:]
-[NSDocument showWindows]
-[NSDocumentController openUntitledDocumentAndDisplay:error:]
-[NSDocumentController(NSInternal) _openUntitled]
-[NSApplication _doOpenUntitled]
-[NSApplication(NSAppleEventHandling) _handleAEOpen:]
-[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:]
-[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:]
_NSAppleEventManagerGenericHandler
aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*)
dispatchEventAndSendReply(AEDesc const*, AEDesc*)
aeProcessAppleEvent
AEProcessAppleEvent
_DPSNextEvent
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
-[NSApplication run]
NSApplicationMain
main
start


--Richard

_______________________________________________

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: Untitled Document Leak
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Localizing Xibs using bindings
  • Next by Date: Re: Untitled Document Leak
  • Previous by thread: IKImageBrowserView out drag & drop with NSData
  • Next by thread: Re: Untitled Document Leak
  • Index(es):
    • Date
    • Thread