Bug 19807

Summary: LEAK: leak from WebCore::BitmapImage::getTIFFRepresentation()
Product: WebKit Reporter: Cameron Zwarich (cpst) <zwarich>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   

Description Cameron Zwarich (cpst) 2008-06-28 22:26:52 PDT
I found this by running the stress test with MallocStackLogging enabled:

Leak: 0x5aa9e00  size=3072	string 'text'
	Call stack: [thread 0xa05a0fa0]: | 0xba4d6 | NSApplicationMain | -[NSApplication run] | 0x86be | -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] | _DPSNextEvent | _NSHandleCarbonMenuEvent | _HandleMenuSelection | _HandleMenuSelection2 | MenuSelectCore(MenuData*, Point, double, unsigned long, OpaqueMenuRef**, unsigned short*) | TrackMenuCommon(MenuSelectData&, unsigned char*) | IsUserStillTracking(MenuSelectData*, unsigned char*) | ReceiveNextEventCommon | RunCurrentEventLoopInMode | CFRunLoopRunInMode | CFRunLoopRunSpecific | __NSThreadPerformPerform | +[NSNotificationCenter(WebNSNotificationCenterExtras) _postNotificationName:] | -[NSNotificationCenter postNotificationName:object:userInfo:] | _CFXNotificationPostNotification | __CFXNotificationPost | _nsnote_callback | 0x4052c | -[WebIconDatabase iconForURL:withSize:] | -[WebIconDatabase iconForURL:withSize:cache:] | webGetNSImage(WebCore::Image*, _NSSize) | WebCore::BitmapImage::getNSImage() | WebCore::BitmapImage::getTIFFRepresentation() | CGImageDestinationFinalize | _CGImagePluginWriteTIFF | writeOne | writeICCData | CMSGetICCProfileData | CMOpenProfile | CMOpenOrNewAccess | ScratchInit | IOCreateAndOpen | stdSmartNewHandle | stdSmartNewPtr | malloc | malloc_zone_malloc
Comment 1 Mark Rowe (bdash) 2008-06-28 22:31:25 PDT
This leak looks like it is inside ImageIO's color management rather than in WebKit itself.
Comment 2 Cameron Zwarich (cpst) 2008-06-28 23:05:16 PDT
This has already been reported as <rdar://problem/5667268> and is not a WebKit issue.