Untitled Document Leak
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